Log sendBufferSizeLimit exceeded at warn

Closes gh-23534
This commit is contained in:
Rossen Stoyanchev 2019-09-24 12:09:41 +01:00
parent 2794264480
commit 99d9dacc4f
1 changed files with 3 additions and 0 deletions

View File

@ -359,6 +359,9 @@ public class SubProtocolWebSocketHandler
if (logger.isDebugEnabled()) {
logger.debug("Terminating '" + session + "'", ex);
}
else if (logger.isWarnEnabled()) {
logger.debug("Terminating '" + session + "': " + ex.getMessage());
}
this.stats.incrementLimitExceededCount();
clearSession(session, ex.getStatus()); // clear first, session may be unresponsive
session.close(ex.getStatus());