perf[proxy]: reduce the synchronization time of the heartbeat packets

This commit is contained in:
jaysunxiao committed 2025-06-30 21:11:33 +08:00
1 parent 2008a8117e
commit 1cfe5ab433
2 files changed
+2 -2

No files matched your search

@@ -39,7 +39,7 @@ public class TunnelClient extends AbstractClient<SocketChannel> {
@Override
protected void initChannel(SocketChannel channel) {
channel.pipeline().addLast(new IdleStateHandler(0, 0, 60));
channel.pipeline().addLast(new IdleStateHandler(0, 0, 8));
channel.pipeline().addLast(new TunnelClientIdleHandler());
channel.pipeline().addLast(new TunnelClientCodecHandler());
channel.pipeline().addLast(new TunnelClientRouteHandler());
@@ -37,7 +37,7 @@ public class TunnelServer extends AbstractServer<SocketChannel> {
@Override
protected void initChannel(SocketChannel channel) throws Exception {
channel.pipeline().addLast(new IdleStateHandler(0, 0, 180));
channel.pipeline().addLast(new IdleStateHandler(0, 0, 32));
channel.pipeline().addLast(new ServerIdleHandler());
channel.pipeline().addLast(new TunnelServerCodecHandler());
channel.pipeline().addLast(new TunnelServerRouteHandler());