Server unresponsive after cancelled socket #2
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the bug
When a client disconnects unexpectedly and the
Socket
is therefore cancelled, the server does not properly respond to incoming objects.To Reproduce
Steps to reproduce the behavior:
Expected behavior
The server operation should continue as intended.
Additional context
The fix will probably depend on
java-nio-server
.The
IOException
is thrown inObjectMessageReader
due to the socket not being able to read into the message buffer. This exception is then catched inside the server loop defined insidejava-nio-server
, which is then left. Therefore no further messages can be read.