forked from netty/netty
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[netty#3709] Ensure all data is read from socket when EPOLLRDUP is re…
…ceived Motivation: When EPOLLRDHUP is received we need to try to read at least one time to ensure that we read all pending data from the socket. Otherwise we may loose data. Modifications: - Ensure we read all data from socket - Ensure file descriptor is closed on doClose() even if doDeregister() throws an Exception. - Only handle either EPOLLRDHUP or EPOLLIN as only one is needed to detect connection reset. Result: No more data loss on connection reset.
- Loading branch information
1 parent
b3abd58
commit 08e4b07
Showing
3 changed files
with
23 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters