How can I detect that the client has closed the socket using mio 0.6?
I want to be able to detect that the client has closed the socket so that I can do deregister
it, but I cannot find a suitable way to do this.
My question is similar to Client Hanging Detection in MIO , but there are two main differences:
-
I need a cross platform solution. According to the source code mio 0.6
hup
is UNIX only, my code should work on Windows too. -
The mio API has changed dramatically from 0.3.
+3
source to share
No one has answered this question yet
See similar questions:
or similar: