diff --git a/spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/session/AbstractSockJsSession.java b/spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/session/AbstractSockJsSession.java index 7f46f4008f..eaad7590c4 100644 --- a/spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/session/AbstractSockJsSession.java +++ b/spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/session/AbstractSockJsSession.java @@ -82,9 +82,9 @@ public abstract class AbstractSockJsSession implements SockJsSession { private static final Set disconnectedClientExceptions; static { - Set set = new HashSet(2); set.add("ClientAbortException"); // Tomcat + set.add("EOFException"); // Tomcat set.add("EofException"); // Jetty // java.io.IOException "Broken pipe" on WildFly, Glassfish (already covered) disconnectedClientExceptions = Collections.unmodifiableSet(set); @@ -340,7 +340,7 @@ public abstract class AbstractSockJsSession implements SockJsSession { disconnect(CloseStatus.SERVER_ERROR); } catch (Throwable disconnectFailure) { - logger.error("Failure while closing " + this, disconnectFailure); + // Ignore } try { close(CloseStatus.SERVER_ERROR);