Saul,

I don't think that it will be discarded, I think that the TCP ACKs just
won't be sent after filling up the buffer.

So generally speaking, it is ok to call read_start/read_stop, and won't
affect anything except, probably a performance.

Cheers,
Fedor.


On Wed, May 28, 2014 at 8:27 AM, Saúl Ibarra Corretgé <[email protected]>
wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 05/28/2014 08:59 AM, Ashish wrote:
> >
> >
> > What happens when we call *uv_read_stop* and after few seconds
> > call *uv_read_start* again ?
> >
> > 1. Data from incoming stream in those few seconds will be
> > ignored/deleted forever? or 2. Will the data be kept on hold and
> > will be passed to *on_read* after we call *uv_read_start*?
> >
>
> When you call uv_read_stop libuv will stop monitoring the fd for
> readability. If more data is sent to it, it will be buffered in the
> kernel (IIRC), but if the buffer becomes full some of it will be
> discarded.
>
>
> Cheers,
>
> - --
> Saúl Ibarra Corretgé
> bettercallsaghul.com
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> Comment: Using GnuPG with Icedove - http://www.enigmail.net/
>
> iQIcBAEBAgAGBQJThY/MAAoJEEEOVVOum8BZnNUP/0LOt0llHrf+qwh8Y0W95YHP
> E1SnTWVsL2EPaHoCcH1ASItHNe4OXpqdhDD32qElbk9kKAhZObXC/V+dD+ymbGxs
> uYJAvGJCuTz4dSlhNtz1j506hUE+QVO1cu9mN5pyTosCu8bOYAF7ZP0gV0twDJHj
> GfydOIgZ20fR4imSflw5fxBLuemeT9PZUY/q+C/MrvntOTRll5eWyQ04+IMvdukB
> L7iM6vqfr3vY7HercfmR8RNUz26sXXIEaMDdqndnw4k2EWclSb7Ha6XgVhY+fN9Q
> DLYkdyDy2Vr+pN9tj5MDMDIjDHYgvw5j/dEqXWC8Ew+w8LmXnme47DoGRsVq2RgC
> KzzUECbUy3vxpDmPG163xADcy36RbEQdul0QEfl8SWYhQwCnaj6RHMzL96HEaWo8
> ixR2WF1yvKm1QUpPbPteFFfCjkXNIOaap1pQZGK74D4dqFlA0q7mRrYIaRsQh/Nm
> SEuVeiolWRUa+7U7hzSXwQAYOQ4CiloxHeSIEKqKq1Azui56s5X/e/zXbejlQ2mk
> ezugwmVC6+gpJMNSLPn3B+8duM9KHXjPxwqDeivPx9Kje29thkNNd5+2BHWrPuga
> UOYV8fDgpTfKmooI0V9GdcfmYK40f897Z+vVy+gZQZyow5+NH8dY9uOvHXhkFaD/
> QWh+ujpX3yCPSAwf3QnR
> =xvak
> -----END PGP SIGNATURE-----
>
> --
> 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 http://groups.google.com/group/libuv.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 http://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to