Issue #4537 - fix potential spin when discarding in WebSocketConnection

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2020-02-07 21:32:43 +11:00
parent 13458ab515
commit 20621b76fb
1 changed files with 1 additions and 1 deletions

View File

@ -497,7 +497,7 @@ public abstract class AbstractWebSocketConnection extends AbstractConnection imp
case DISCARD:
if (LOG.isDebugEnabled())
LOG.debug("Discarded buffer - {}", BufferUtil.toDetailString(buffer));
buffer.clear();
BufferUtil.clear(buffer);
break;
case SUSPEND: