Bump up the backlog value

This commit is contained in:
Trustin Lee 2012-05-15 13:18:46 +09:00
parent f00fadb9fd
commit 128851dd09

View File

@ -49,7 +49,7 @@ public class EchoServer {
ServerChannelBuilder b = new ServerChannelBuilder();
b.parentEventLoop(parentLoop)
.parentChannel(new NioServerSocketChannel())
.parentOption(ChannelOption.SO_BACKLOG, 24)
.parentOption(ChannelOption.SO_BACKLOG, 100)
.localAddress(new InetSocketAddress(port))
.childEventLoop(childLoop)
.childOption(ChannelOption.TCP_NODELAY, true)