Issue #9682 - changes from review

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2023-05-12 04:44:06 +10:00
parent c8b8ef6bd5
commit 7f7551a2a8
2 changed files with 3 additions and 1 deletions

View File

@ -467,6 +467,8 @@ public class JettyWebSocketFrameHandler implements FrameHandler
needDemand = true;
frame = delayedFrame;
callback = delayedCallback;
delayedFrame = null;
delayedCallback = null;
state = SuspendState.DEMANDING;
break;

View File

@ -202,7 +202,7 @@ public class SuspendResumeTest
}
@Test
public void timeoutWhileSuspended() throws Exception
public void testTimeoutWhileSuspended() throws Exception
{
URI uri = new URI("ws://localhost:" + connector.getLocalPort() + "/suspend");
EventSocket clientSocket = new EventSocket();