H
hermbagger
I have an async socket server running. When a connected client closes
the connection, the servers' OnDataReceived function seems to get
bombarded with empty messages (0 bytes) It causes the entire server
to hang until an exception is thrown and the socket gets released.
How can I handle this situation? No method of checking for message
length or message content seems to be able to kill the connection in
time because the bombardment is so rapid.
Has anyone else had this problem?
the connection, the servers' OnDataReceived function seems to get
bombarded with empty messages (0 bytes) It causes the entire server
to hang until an exception is thrown and the socket gets released.
How can I handle this situation? No method of checking for message
length or message content seems to be able to kill the connection in
time because the bombardment is so rapid.
Has anyone else had this problem?