提交 6b93b96b 编写于 作者: F fengfei

修改心跳时间

上级 5c84ed98
......@@ -17,9 +17,9 @@ public class IdleCheckHandler extends IdleStateHandler {
public static final int USER_CHANNEL_READ_IDLE_TIME = 1200;
public static final int READ_IDLE_TIME = 40;
public static final int READ_IDLE_TIME = 60;
public static final int WRITE_IDLE_TIME = 20;
public static final int WRITE_IDLE_TIME = 40;
private static Logger logger = LoggerFactory.getLogger(IdleCheckHandler.class);
......@@ -30,6 +30,7 @@ public class IdleCheckHandler extends IdleStateHandler {
@Override
protected void channelIdle(ChannelHandlerContext ctx, IdleStateEvent evt) throws Exception {
// 正在使用中的连接不处理
if (ctx.channel().attr(Constants.NEXT_CHANNEL) != null) {
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册