mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
change tunnel server websocket idle time to 10s. #2448
This commit is contained in:
+2
-1
@@ -10,6 +10,7 @@ import io.netty.handler.codec.http.HttpServerCodec;
|
||||
import io.netty.handler.codec.http.websocketx.WebSocketServerProtocolHandler;
|
||||
import io.netty.handler.codec.http.websocketx.extensions.compression.WebSocketServerCompressionHandler;
|
||||
import io.netty.handler.ssl.SslContext;
|
||||
import io.netty.handler.timeout.IdleStateHandler;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -37,7 +38,7 @@ public class TunnelSocketServerInitializer extends ChannelInitializer<SocketChan
|
||||
pipeline.addLast(new HttpObjectAggregator(ArthasConstants.MAX_HTTP_CONTENT_LENGTH));
|
||||
pipeline.addLast(new WebSocketServerCompressionHandler());
|
||||
pipeline.addLast(new WebSocketServerProtocolHandler(tunnelServer.getPath(), null, true, ArthasConstants.MAX_HTTP_CONTENT_LENGTH, false, true, 10000L));
|
||||
|
||||
pipeline.addLast(new IdleStateHandler(0, 0, ArthasConstants.WEBSOCKET_IDLE_SECONDS));
|
||||
pipeline.addLast(new TunnelSocketFrameHandler(tunnelServer));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user