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.
For more details, see jetty/jetty.project#11088.

Closes gh-31869
  • Loading branch information
leonchen83 authored and sdeleuze committed Dec 21, 2023
1 parent 3ed5a90 commit e00a882
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 e00a882

Please sign in to comment.