No, it won't there is a per-socket timeout. I think it is 60 seconds by
default on the most of the unixes.


On Thu, Apr 24, 2014 at 2:18 PM, Iñaki Baz Castillo <[email protected]> wrote:

> 2014-04-24 12:02 GMT+02:00 Atul <[email protected]>:
> > I believe we also always get nread < 0 in read callback (read_cb)
> whenever
> > client disconnects (crash or lost Internet) ?
> >
> > Can we not reply on that?
>
> That is not true. Internet TCP connections are not a "physical wire".
> If you crash or loose Internet connection then your computer WONT send
> a TCP FIN or TCP RESET to the server so the server WONT realize of
> your disconnection (until it tries to write, but what about if the
> server does NEVER attempt to write you? it would keep your ghost
> connection forever and ever!).
>
>
>
>
> --
> Iñaki Baz Castillo
> <[email protected]>
>
> --
> 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