Skip to content

Commit

Permalink
Complete Jetty frame callback when opcode is not PONG
Browse files Browse the repository at this point in the history
The onWebSocketFrame method should complete callback.
More details see
jetty/jetty.project#11088.

Closes spring-projectsgh-31869
  • Loading branch information
leonchen83 authored and sdeleuze committed Dec 21, 2023
1 parent 3ed5a90 commit 2c63a9c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ public void onWebSocketFrame(Frame frame, Callback callback) {
ExceptionWebSocketHandlerDecorator.tryCloseWithError(this.wsSession, ex, logger);
}
}
else {
callback.succeed();
}
}

private static ByteBuffer copyByteBuffer(ByteBuffer src) {
Expand Down

0 comments on commit 2c63a9c

Please sign in to comment.