Issue #7086 - Demand should not throw if the WebSocket session is closed.

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2021-11-08 21:31:14 +11:00
parent 370db7ad34
commit 6b6452a519
1 changed files with 0 additions and 4 deletions

View File

@ -422,10 +422,6 @@ public class WebSocketCoreSession implements IncomingFrames, CoreSession, Dumpab
{
if (!demanding)
throw new IllegalStateException("FrameHandler is not demanding: " + this);
if (!sessionState.isInputOpen())
throw new IllegalStateException("FrameHandler input not open: " + this);
connection.demand(n);
}