Merge branch '6.1.x'
This commit is contained in:
@@ -36,7 +36,7 @@ import org.springframework.util.Assert;
|
|||||||
public class DisconnectedClientHelper {
|
public class DisconnectedClientHelper {
|
||||||
|
|
||||||
private static final Set<String> EXCEPTION_PHRASES =
|
private static final Set<String> EXCEPTION_PHRASES =
|
||||||
Set.of("broken pipe", "connection reset by peer");
|
Set.of("broken pipe", "connection reset");
|
||||||
|
|
||||||
private static final Set<String> EXCEPTION_TYPE_NAMES =
|
private static final Set<String> EXCEPTION_TYPE_NAMES =
|
||||||
Set.of("AbortedException", "ClientAbortException",
|
Set.of("AbortedException", "ClientAbortException",
|
||||||
@@ -73,11 +73,12 @@ public class DisconnectedClientHelper {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether the given exception indicates the client has gone away.
|
* Whether the given exception indicates the client has gone away.
|
||||||
* Known cases covered:
|
* <p>Known cases covered:
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li>ClientAbortException or EOFException for Tomcat
|
* <li>ClientAbortException or EOFException for Tomcat
|
||||||
* <li>EofException for Jetty
|
* <li>EofException for Jetty
|
||||||
* <li>IOException "Broken pipe" or "connection reset by peer"
|
* <li>IOException "Broken pipe" or "connection reset by peer"
|
||||||
|
* <li>SocketException "Connection reset"
|
||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
public static boolean isClientDisconnectedException(Throwable ex) {
|
public static boolean isClientDisconnectedException(Throwable ex) {
|
||||||
|
|||||||
Reference in New Issue
Block a user