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
This commit is contained in:
hengyunabc 2019-08-27 15:00:58 +08:00 committed by Norman Maurer
parent c227053c3b
commit 13575be12f

View File

@ -115,7 +115,7 @@ public class WebSocketServerProtocolHandler extends WebSocketProtocolHandler {
} }
public WebSocketServerProtocolHandler(String websocketPath, long handshakeTimeoutMillis) { public WebSocketServerProtocolHandler(String websocketPath, long handshakeTimeoutMillis) {
this(websocketPath, null, false); this(websocketPath, false, handshakeTimeoutMillis);
} }
public WebSocketServerProtocolHandler(String websocketPath, boolean checkStartsWith) { public WebSocketServerProtocolHandler(String websocketPath, boolean checkStartsWith) {