Skip to content

Commit 49b872e

Browse files
committed
Adjust logging following SockJS client disconnect
Issue: SPR-11870
1 parent d85c1fb commit 49b872e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/session/AbstractSockJsSession.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ public abstract class AbstractSockJsSession implements SockJsSession {
8282
private static final Set<String> disconnectedClientExceptions;
8383

8484
static {
85-
8685
Set<String> set = new HashSet<String>(2);
8786
set.add("ClientAbortException"); // Tomcat
87+
set.add("EOFException"); // Tomcat
8888
set.add("EofException"); // Jetty
8989
// java.io.IOException "Broken pipe" on WildFly, Glassfish (already covered)
9090
disconnectedClientExceptions = Collections.unmodifiableSet(set);
@@ -340,7 +340,7 @@ protected void writeFrame(SockJsFrame frame) throws SockJsTransportFailureExcept
340340
disconnect(CloseStatus.SERVER_ERROR);
341341
}
342342
catch (Throwable disconnectFailure) {
343-
logger.error("Failure while closing " + this, disconnectFailure);
343+
// Ignore
344344
}
345345
try {
346346
close(CloseStatus.SERVER_ERROR);

0 commit comments

Comments
 (0)