Fixed unresponsive behavior after cancelled socket #3

Merged
CyB3RC0nN0R merged 2 commits from b/cancelled_socket into master 2020-02-09 15:34:36 +01:00
CyB3RC0nN0R commented 2020-02-09 15:17:45 +01:00 (Migrated from github.com)

Basically, a Socket is cancelled not only if the end of stream is reached but also if an IOException is thrown by the MessageReader.

This covers the case of a cancelled connection as well as any other error that occurred while reading a message.

Fixes #2

Basically, a `Socket` is cancelled not only if the end of stream is reached but also if an `IOException` is thrown by the `MessageReader`. This covers the case of a cancelled connection as well as any other error that occurred while reading a message. Fixes #2
delvh (Migrated from github.com) approved these changes 2020-02-09 15:31:13 +01:00
delvh (Migrated from github.com) left a comment

As far as I can evaluate this, this is a nice fix

As far as I can evaluate this, this is a nice fix
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: zdm/java-nio-server#3
No description provided.