Fixed #339, sets TCP_NODELAY options on the accepted child socket and not on the accepting

This commit is contained in:
andsel
2018-04-27 14:27:58 +02:00
parent cf5d619d34
commit 513d4d7996
4 changed files with 7 additions and 4 deletions
@@ -185,8 +185,10 @@ public class NettyAcceptor implements ServerAcceptor {
throw th;
}
}
}).option(ChannelOption.SO_BACKLOG, nettySoBacklog).option(ChannelOption.SO_REUSEADDR, nettySoReuseaddr)
.option(ChannelOption.TCP_NODELAY, nettyTcpNodelay)
})
.option(ChannelOption.SO_BACKLOG, nettySoBacklog)
.option(ChannelOption.SO_REUSEADDR, nettySoReuseaddr)
.childOption(ChannelOption.TCP_NODELAY, nettyTcpNodelay)
.childOption(ChannelOption.SO_KEEPALIVE, nettySoKeepalive);
try {
LOG.info("Binding server. host={}, port={}", host, port);