Open GoogleCodeExporter opened 9 years ago
Mmm... I'm not sure what should happen in case the network (cable / wifi) gets
abruptly disconnected. I don't recall ever bumping into such a scenario.
My wild guess is:
- if the client is idle the connection will remain open until it gets
disconnected because of the timeout (5 mins)
- if not, send() or recv() will immediately fail with ECONNRESET or ESHUTDOWN
In both cases on_disconnect() is supposed to be called.
However, this looks like something you can't control at user-level code: it
depends from the underlying socket implementation.
If you want to investigate further you can try to see what happens when the
client is idle and when it's not. Anyway, I don't expect any particularly
"weird" behavior resulting from this experiment.
Original comment by g.rodola
on 28 Feb 2013 at 8:09
Original issue reported on code.google.com by
Fero...@gmail.com
on 28 Feb 2013 at 7:36