mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
update 打印日志;超时关闭连接
This commit is contained in:
@@ -56,7 +56,7 @@ public class StartAndLengthFieldFrameDecoder extends ByteToMessageDecoder {
|
||||
// 数据包的长度,又变得不满足
|
||||
// 此时,应该结束。等待后面的数据到达
|
||||
if (buffer.readableBytes() < BASE_LENGTH) {
|
||||
log.info("数据包的长度不满足 readableBytes:{}, BASE_LENGTH:{}", buffer.readableBytes(), BASE_LENGTH);
|
||||
log.debug("数据包的长度不满足 readableBytes:{}, BASE_LENGTH:{}", buffer.readableBytes(), BASE_LENGTH);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -181,7 +181,7 @@ public class NettyServerHandler extends ChannelInboundHandlerAdapter {
|
||||
log.error("Client-IP:【{}】, channelId:【{}】, pileSn:【{}】, ALL_IDLE 总超时", socketString, channelId, pileSn);
|
||||
}
|
||||
if (flag) {
|
||||
// ctx.channel().close();
|
||||
ctx.channel().close();
|
||||
// close(channelId, pileSn);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user