Hi! I think in almost every case this errors are fatal. You can't know for sure, how much data was written and if any data was written at all.
Cheers, Fedor. On Tue, Apr 22, 2014 at 8:07 PM, Iñaki Baz Castillo <[email protected]> wrote: > Hi, I run a TCP server. At some time a connected client crashes or > looses Internet so the server never receives a TCP FIN. > > Later the server writes into that TCP connection and the uv_write_cb > fires with error. > > My question is: in which uv_write_cb error cases I should close the > TCP connection (as it is clear that the client is offline)? > > Thanks a lot. > > > -- > 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.
