Bump up the backlog value
This commit is contained in:
parent
f00fadb9fd
commit
128851dd09
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user