Submitted here:
https://github.com/libuv/libuv/issues/1078

Thanks for help!

On Sunday, October 2, 2016 at 4:08:29 PM UTC+3, Saúl Ibarra Corretgé wrote:
>
> On 10/02/2016 02:01 PM, Elad Nachmias wrote: 
> > 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? 
> > 
>
> Yes. 
>
> > 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) 
>
> Yes. 
>
> > 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. 
> > 
>
> Can you file an issue please? 
>
>
> Cheers, 
>
> -- 
> Saúl Ibarra Corretgé 
> bettercallsaghul.com 
>
>
>

-- 
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