Server unresponsive after cancelled socket #2
Labels
No Label
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
L
M
S
XL
bug
bugfix
discussion
documentation
feature
maintenance
postponed
refactoring
wontfix
No Milestone
No Assignees
1 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: zdm/java-nio-server#2
Loading…
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.