Fixed unresponsive behavior after cancelled socket #3
No reviewers
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#3
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "b/cancelled_socket"
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?
Basically, a
Socket
is cancelled not only if the end of stream is reached but also if anIOException
is thrown by theMessageReader
.This covers the case of a cancelled connection as well as any other error that occurred while reading a message.
Fixes #2
As far as I can evaluate this, this is a nice fix