From 13575be12fb8ec855d40ea72813688f9bfde17db Mon Sep 17 00:00:00 2001 From: hengyunabc Date: Tue, 27 Aug 2019 15:00:58 +0800 Subject: [PATCH] Correctly pass all parameters in WebSocketServerProtocolHandler constructor (#9506) Motivation: We did not correctly pass all supplied parameters to the called constructor and so did not apply the timeout. Modification: Correctly pass on the parameters. Result: Use timeout --- .../codec/http/websocketx/WebSocketServerProtocolHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandler.java b/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandler.java index 68aae061ff..85b30127c1 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandler.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandler.java @@ -115,7 +115,7 @@ public class WebSocketServerProtocolHandler extends WebSocketProtocolHandler { } public WebSocketServerProtocolHandler(String websocketPath, long handshakeTimeoutMillis) { - this(websocketPath, null, false); + this(websocketPath, false, handshakeTimeoutMillis); } public WebSocketServerProtocolHandler(String websocketPath, boolean checkStartsWith) {