From 41c1ab2e826e3cb0f653a4365dcd29c4b59dc5bf Mon Sep 17 00:00:00 2001 From: ursa Date: Mon, 24 Jun 2019 08:07:57 +0100 Subject: [PATCH] Bugfix #9257: WebSocketProtocolHandler does NOT support autoRead=false (#9258) Motivation: I need to control WebSockets inbound flow manually, when autoRead=false Modification: Add missed ctx.read() call into WebSocketProtocolHandler, where read request has been swallowed. Result: Fixes #9257 --- .../websocketx/WebSocketProtocolHandler.java | 8 +++ .../WebSocketProtocolHandlerTest.java | 64 ++++++++++++++++++- 2 files changed, 70 insertions(+), 2 deletions(-) diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketProtocolHandler.java b/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketProtocolHandler.java index 53532cafe9..84f96ea344 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketProtocolHandler.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketProtocolHandler.java @@ -48,15 +48,23 @@ abstract class WebSocketProtocolHandler extends MessageToMessageDecoder