Skip to content

Commit 7f43b47

Browse files
committed
Add TCP_NODELAY
1 parent 5b358ec commit 7f43b47

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

client/src/main/java/org/asynchttpclient/netty/channel/ChannelManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ private Bootstrap newBootstrap(Class<? extends Channel> socketChannelClass, Even
193193
Bootstrap bootstrap = new Bootstrap().channel(socketChannelClass).group(eventLoopGroup)//
194194
// default to PooledByteBufAllocator
195195
.option(ChannelOption.ALLOCATOR, PooledByteBufAllocator.DEFAULT)//
196+
.option(ChannelOption.TCP_NODELAY, true)//
196197
.option(ChannelOption.AUTO_CLOSE, false);
197198

198199
if (config.getConnectTimeout() > 0) {

0 commit comments

Comments
 (0)