mirror of
https://gitee.com/farsunset/cim.git
synced 2025-06-17 15:45:24 +08:00
update cim-server-sdk/src/main/java/com/farsunset/cim/acceptor/NioSocketAcceptor.java.
This commit is contained in:
parent
62107d5b44
commit
42ba6e0cd4
@ -174,7 +174,7 @@ abstract class NioSocketAcceptor extends SimpleChannelInboundHandler<SentBody>{
|
||||
}
|
||||
|
||||
/*
|
||||
* 如果心跳请求发出30秒内没收到响应,则关闭连接
|
||||
* 如果心跳请求发出15秒内没收到响应,则关闭连接
|
||||
*/
|
||||
Integer pingCount = ctx.channel().attr(ChannelAttr.PING_COUNT).get();
|
||||
if (idleEvent.state() == IdleState.READER_IDLE && pingCount != null && pingCount >= PONG_TIME_OUT_COUNT) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user