|
@@ -30,7 +30,7 @@ public abstract class WebSocketServerInitializer extends ChannelInitializer<Chan
|
|
|
ChannelPipeline pipeline = ch.pipeline();
|
|
|
pipeline.addLast(new HttpServerCodec());
|
|
|
pipeline.addLast(new ChunkedWriteHandler());
|
|
|
- pipeline.addLast(new HttpObjectAggregator(64 * 1024));
|
|
|
+ pipeline.addLast(new HttpObjectAggregator(65536));
|
|
|
pipeline.addLast(new WebSocketServerProtocolHandler(uri));
|
|
|
pipeline.addLast(new WebSocketConnectedServerHandler());// 连接成功监听handler
|
|
|
}
|