1. Regarding `uv_poll_t` handle, what would happen in the following 
sequence:
(a) I started polling on a fd of a tcp socket.
(b) The socket become readable.
(c) The handle's callback is called (it does not read, and the socket is 
still readable).
     The callback stop & start the poll handle, and then return.
     void poll_cb(handle, ...) { uv_poll_stop(handle); 
uv_poll_start(handle); }
Will the callback be called over-and-over again?

2. Another sequence:
(a) I started polling on a fd of a tcp socket.
(b) The socket become readable.
(c) The handle's callback is called. the callback reads some of the 
available data but not all of it.
Will the callback be called again? (because the socket is actually still 
readable)
If not, stoping&starting the handle can make it call the callback again? Is 
it the right practice to do so in that case?

If the behaviour is well defined (and not implementation dependent), I 
think the official documentation should elaborate on the subject.

Thanks for help.
Elad

-- 
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to