作者 crossoverJie

:art: Improving structure / format of the code.

@@ -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()))