mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
203fa75196
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