[FIX] CorruptedWebSocketFrameException: Max frame length of 65536 has been exceeded

This commit is contained in:
Gravita 2020-12-20 18:12:28 +07:00
parent 826eb4c80f
commit de95a66742

View file

@ -60,7 +60,7 @@ public void initChannel(SocketChannel ch) {
if (server.config.netty.ipForwarding) if (server.config.netty.ipForwarding)
pipeline.addLast("forward-http", new NettyIpForwardHandler(context)); pipeline.addLast("forward-http", new NettyIpForwardHandler(context));
pipeline.addLast("websock-comp", new WebSocketServerCompressionHandler()); pipeline.addLast("websock-comp", new WebSocketServerCompressionHandler());
pipeline.addLast("websock-codec", new WebSocketServerProtocolHandler(WEBSOCKET_PATH, null, true)); pipeline.addLast("websock-codec", new WebSocketServerProtocolHandler(WEBSOCKET_PATH, null, true, server.config.netty.performance.maxWebSocketRequestBytes));
if (!server.config.netty.disableWebApiInterface) if (!server.config.netty.disableWebApiInterface)
pipeline.addLast("webapi", new NettyWebAPIHandler(context)); pipeline.addLast("webapi", new NettyWebAPIHandler(context));
if (server.config.netty.fileServerEnabled) if (server.config.netty.fileServerEnabled)