updated code for netty exceptions
This commit is contained in:
parent
611f60cdab
commit
1664413c5f
@ -29,7 +29,7 @@ public class NettyServerB {
|
|||||||
.childHandler(new ChannelInitializer<SocketChannel>() {
|
.childHandler(new ChannelInitializer<SocketChannel>() {
|
||||||
public void initChannel(SocketChannel ch) throws Exception {
|
public void initChannel(SocketChannel ch) throws Exception {
|
||||||
ch.pipeline().addLast(new ChannelHandlerA(), new ChannelHandlerB());
|
ch.pipeline().addLast(new ChannelHandlerA(), new ChannelHandlerB());
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.option(ChannelOption.SO_BACKLOG, 128)
|
.option(ChannelOption.SO_BACKLOG, 128)
|
||||||
.childOption(ChannelOption.SO_KEEPALIVE, true);
|
.childOption(ChannelOption.SO_KEEPALIVE, true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user