Merge branch '5.3.x'

This commit is contained in:
Rossen Stoyanchev
2022-07-29 16:20:51 +03:00
4 changed files with 13 additions and 10 deletions

View File

@@ -221,7 +221,13 @@ public abstract class AbstractListenerWebSocketSession<T> extends AbstractWebSoc
// Ignore result: can't overflow, ok if not first or no one listens
this.handlerCompletionSink.tryEmitError(ex);
}
close(CloseStatus.SERVER_ERROR.withReason(ex.getMessage()));
if (logger.isDebugEnabled()) {
logger.debug("WebSocket session completed with error", ex);
}
else if (logger.isInfoEnabled()) {
logger.info("WebSocket session completed with error: " + ex.getMessage());
}
close(CloseStatus.SERVER_ERROR);
}
@Override