mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-11 03:13:51 +00:00
perf[proxy]: reduce the synchronization time of the heartbeat packets
This commit is contained in:
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());
|
||||
|
||||
Reference in new issue
Block a user