ChannelOption property description
Attributes | meaning |
ChannelOption.SO_KEEPALIVE | This parameter sets the tcp connection, when this option is set, the test will be state of the connection, when there is no data to detect two hours, tcp automatically sends an event detection data |
ChannelOption.ALLOCATOR | It is the default, object pooling, reuse buffer |
ChannelOption.TCP_NODELAY | Prohibit the small data assembled into large data a send, ensure real-time |
ChannelOption.TCP_CORK | Suitable for file transfer, when the transmission reaches the maximum waiting time, transmitting a line, to improve the network load |
ChannelOption.SO_SNDBUF | Send buffer size |
ChannelOption.SO_RCVBUF | Accept the size of the buffer |
hannelOption.SO_LINGER | Blocked close () Closes time, try to ensure that data has been sent, but can not be guaranteed |
ChanneOption.SO_REUSEADDR | Allow reuse local port address i |
ChannelOption.SO_BACKLOG | Specify the size of the queue |