diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocket08FrameEncoder.java b/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocket08FrameEncoder.java index 2bcc87442d..efc072034c 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocket08FrameEncoder.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocket08FrameEncoder.java @@ -81,6 +81,14 @@ public class WebSocket08FrameEncoder extends MessageToMessageEncoder + * Masked messages will always be sent at once. + */ + private static final int GATHERING_WRITE_TRESHOLD = 1024; + private final boolean maskPayload; /** @@ -140,7 +148,7 @@ public class WebSocket08FrameEncoder extends MessageToMessageEncoder