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
@@ -123,7 +123,7 @@ public class ProtocolDecodingServer {
})
.option(ChannelOption.SO_BACKLOG, 128)
.option(ChannelOption.SO_REUSEADDR, true)
.option(ChannelOption.TCP_NODELAY, true)
.childOption(ChannelOption.TCP_NODELAY, true)
.childOption(ChannelOption.SO_KEEPALIVE, true);
try {
// Bind and start to accept incoming connections.
@@ -71,7 +71,7 @@ public class ProtocolPublishDecodingServer {
})
.option(ChannelOption.SO_BACKLOG, 128)
.option(ChannelOption.SO_REUSEADDR, true)
.option(ChannelOption.TCP_NODELAY, true)
.childOption(ChannelOption.TCP_NODELAY, true)
.childOption(ChannelOption.SO_KEEPALIVE, true);
try {
// Bind and start to accept incoming connections.