Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support all "connection reset" phrases in DisconnectedClientHelper
Prior to this commit, the isClientDisconnectedException() method in DisconnectedClientHelper checked whether the message of the ultimate exception in an exception chain contained one of the phrases "broken pipe" or "connection reset by peer". However, that failed to match if the exception message contained "Connection reset", which is the case for the SocketException thrown by throwConnectionReset() in sun.nio.ch.SocketChannelImpl. This commit therefore replaces the "connection reset by peer" phrase with "connection reset" in order to support all exception messages containing "connection reset". Closes gh-33064
- Loading branch information