From 460522f443f49960da48687bc994dd56356f8dfd Mon Sep 17 00:00:00 2001 From: Baoyi Chen Date: Wed, 20 Dec 2023 18:20:45 +0800 Subject: [PATCH] complete frame callback when opcode is not PONG onWebSocketFrame method should complete callback. more details see issue [JETTY 11088](https://github.com/jetty/jetty.project/issues/11088) --- .../web/socket/adapter/jetty/JettyWebSocketHandlerAdapter.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spring-websocket/src/main/java/org/springframework/web/socket/adapter/jetty/JettyWebSocketHandlerAdapter.java b/spring-websocket/src/main/java/org/springframework/web/socket/adapter/jetty/JettyWebSocketHandlerAdapter.java index 5254abc47259..cb4b40eef4cf 100644 --- a/spring-websocket/src/main/java/org/springframework/web/socket/adapter/jetty/JettyWebSocketHandlerAdapter.java +++ b/spring-websocket/src/main/java/org/springframework/web/socket/adapter/jetty/JettyWebSocketHandlerAdapter.java @@ -114,6 +114,8 @@ public void onWebSocketFrame(Frame frame, Callback callback) { callback.fail(ex); ExceptionWebSocketHandlerDecorator.tryCloseWithError(this.wsSession, ex, logger); } + } else { + callback.succeed(); } }