diff --git a/fine-socketio/src/com/fr/third/socketio/SocketIOChannelInitializer.java b/fine-socketio/src/com/fr/third/socketio/SocketIOChannelInitializer.java index 698fb2a42..0beca76e7 100644 --- a/fine-socketio/src/com/fr/third/socketio/SocketIOChannelInitializer.java +++ b/fine-socketio/src/com/fr/third/socketio/SocketIOChannelInitializer.java @@ -55,7 +55,6 @@ import io.netty.handler.codec.http.HttpMessage; import io.netty.handler.codec.http.HttpObjectAggregator; import io.netty.handler.codec.http.HttpRequestDecoder; import io.netty.handler.codec.http.HttpResponseEncoder; -import io.netty.handler.codec.http.websocketx.extensions.compression.WebSocketServerCompressionHandler; import io.netty.handler.ssl.SslHandler; public class SocketIOChannelInitializer extends ChannelInitializer implements DisconnectableHub { @@ -186,7 +185,8 @@ public class SocketIOChannelInitializer extends ChannelInitializer impl pipeline.addLast(XHR_POLLING_TRANSPORT, xhrPollingTransport); // TODO use single instance when https://github.com/netty/netty/issues/4755 will be resolved if (configuration.isWebsocketCompression()) { - pipeline.addLast(WEB_SOCKET_TRANSPORT_COMPRESSION, new WebSocketServerCompressionHandler()); + // TODO:richie 去掉了压缩 + //pipeline.addLast(WEB_SOCKET_TRANSPORT_COMPRESSION, new WebSocketServerCompressionHandler()); } pipeline.addLast(WEB_SOCKET_TRANSPORT, webSocketTransport);