Ian Wells

Results 4 comments of Ian Wells

I wonder if it's just a matter of making your handle using the syscall and then using fileobj=os.fdopen(). Then you should be able to await fileobj.read(...) and everything becomes straightforward.

He neglected to inform me of that. The nice thing about it as suggested is its backward compatible but I sympathise with making the code icky.

Actually, I see I missed the 'timeout' param on 'read' and 'watch' as well, but same thing: if I suspend etcd, a read with a 2s timeout takes 8s, and...