File tree 1 file changed +3
-2
lines changed
spring-web/src/main/java/org/springframework/web/util
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 36
36
public class DisconnectedClientHelper {
37
37
38
38
private static final Set <String > EXCEPTION_PHRASES =
39
- Set .of ("broken pipe" , "connection reset by peer " );
39
+ Set .of ("broken pipe" , "connection reset" );
40
40
41
41
private static final Set <String > EXCEPTION_TYPE_NAMES =
42
42
Set .of ("AbortedException" , "ClientAbortException" ,
@@ -73,11 +73,12 @@ else if (logger.isDebugEnabled()) {
73
73
74
74
/**
75
75
* Whether the given exception indicates the client has gone away.
76
- * Known cases covered:
76
+ * <p> Known cases covered:
77
77
* <ul>
78
78
* <li>ClientAbortException or EOFException for Tomcat
79
79
* <li>EofException for Jetty
80
80
* <li>IOException "Broken pipe" or "connection reset by peer"
81
+ * <li>SocketException "Connection reset"
81
82
* </ul>
82
83
*/
83
84
public static boolean isClientDisconnectedException (Throwable ex ) {
You can’t perform that action at this time.
0 commit comments