Issue #4537 - fix potential spin when discarding in WebSocketConnection
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
13458ab515
commit
20621b76fb
|
@ -497,7 +497,7 @@ public abstract class AbstractWebSocketConnection extends AbstractConnection imp
|
||||||
case DISCARD:
|
case DISCARD:
|
||||||
if (LOG.isDebugEnabled())
|
if (LOG.isDebugEnabled())
|
||||||
LOG.debug("Discarded buffer - {}", BufferUtil.toDetailString(buffer));
|
LOG.debug("Discarded buffer - {}", BufferUtil.toDetailString(buffer));
|
||||||
buffer.clear();
|
BufferUtil.clear(buffer);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SUSPEND:
|
case SUSPEND:
|
||||||
|
|
Loading…
Reference in New Issue