Adjust logging following SockJS client disconnect

Issue: SPR-11870
This commit is contained in:
Rossen Stoyanchev 2014-09-04 00:23:10 -04:00
parent d85c1fbdd5
commit 49b872e387
1 changed files with 2 additions and 2 deletions

View File

@ -82,9 +82,9 @@ public abstract class AbstractSockJsSession implements SockJsSession {
private static final Set<String> disconnectedClientExceptions;
static {
Set<String> set = new HashSet<String>(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);