updated code for netty exceptions

This commit is contained in:
Seun Matt 2018-01-14 06:11:10 +01:00
parent 611f60cdab
commit 1664413c5f

View File

@ -29,7 +29,7 @@ public class NettyServerB {
.childHandler(new ChannelInitializer<SocketChannel>() {
public void initChannel(SocketChannel ch) throws Exception {
ch.pipeline().addLast(new ChannelHandlerA(), new ChannelHandlerB());
}
}
})
.option(ChannelOption.SO_BACKLOG, 128)
.childOption(ChannelOption.SO_KEEPALIVE, true);