Improving structure / format of the code.
正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -26,7 +26,7 @@ public class CIMServerInitializer extends ChannelInitializer<Channel> { | @@ -26,7 +26,7 @@ public class CIMServerInitializer extends ChannelInitializer<Channel> { | ||
| 26 | 26 | ||
| 27 | ch.pipeline() | 27 | ch.pipeline() |
| 28 | //30 秒没有向客户端发送消息就发生心跳 | 28 | //30 秒没有向客户端发送消息就发生心跳 |
| 29 | - .addLast(new IdleStateHandler(10, 0, 0)) | 29 | + .addLast(new IdleStateHandler(15, 0, 0)) |
| 30 | // google Protobuf 编解码 | 30 | // google Protobuf 编解码 |
| 31 | .addLast(new ProtobufVarint32FrameDecoder()) | 31 | .addLast(new ProtobufVarint32FrameDecoder()) |
| 32 | .addLast(new ProtobufDecoder(CIMRequestProto.CIMReqProtocol.getDefaultInstance())) | 32 | .addLast(new ProtobufDecoder(CIMRequestProto.CIMReqProtocol.getDefaultInstance())) |
-
请 注册 或 登录 后发表评论