Skip to content

Commit e00a882

Browse files
leonchen83sdeleuze
authored andcommitted
Complete Jetty frame callback when opcode is not PONG
The onWebSocketFrame method should complete callback. For more details, see jetty/jetty.project#11088. Closes gh-31869
1 parent 3ed5a90 commit e00a882

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spring-websocket/src/main/java/org/springframework/web/socket/adapter/jetty/JettyWebSocketHandlerAdapter.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ public void onWebSocketFrame(Frame frame, Callback callback) {
115115
ExceptionWebSocketHandlerDecorator.tryCloseWithError(this.wsSession, ex, logger);
116116
}
117117
}
118+
else {
119+
callback.succeed();
120+
}
118121
}
119122

120123
private static ByteBuffer copyByteBuffer(ByteBuffer src) {

0 commit comments

Comments
 (0)