mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-03 12:29:31 +00:00
Issue #3382 - changes from review
Signed-off-by: lachan-roberts <lachlan@webtide.com>
This commit is contained in:
parent
ec88316116
commit
b6d6c83bf1
@ -436,17 +436,18 @@ public class JettyWebSocketFrameHandler implements FrameHandler
|
||||
if (delayedFrame != null)
|
||||
delayedFrame.run();
|
||||
else
|
||||
demand();
|
||||
session.getCoreSession().demand(1);
|
||||
}
|
||||
|
||||
private void demand()
|
||||
{
|
||||
boolean demand = false;
|
||||
synchronized (this)
|
||||
{
|
||||
switch(state)
|
||||
{
|
||||
case DEMANDING:
|
||||
session.getCoreSession().demand(1);
|
||||
demand = true;
|
||||
break;
|
||||
|
||||
case SUSPENDED:
|
||||
@ -460,6 +461,9 @@ public class JettyWebSocketFrameHandler implements FrameHandler
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
}
|
||||
|
||||
if (demand)
|
||||
session.getCoreSession().demand(1);
|
||||
}
|
||||
|
||||
static Throwable convertCause(Throwable cause)
|
||||
|
Loading…
x
Reference in New Issue
Block a user