From bf58e49b222d992430713b2b720b48b30b12c387 Mon Sep 17 00:00:00 2001 From: Jason Song Date: Wed, 9 May 2018 18:50:52 +0800 Subject: [PATCH] enable tcp no delay for netty 3 server (#1746) (cherry picked from commit 430fb4c) --- .../com/alibaba/dubbo/remoting/transport/netty/NettyServer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/dubbo-remoting/dubbo-remoting-netty/src/main/java/com/alibaba/dubbo/remoting/transport/netty/NettyServer.java b/dubbo-remoting/dubbo-remoting-netty/src/main/java/com/alibaba/dubbo/remoting/transport/netty/NettyServer.java index 82ab60b139e..5feddbc52de 100644 --- a/dubbo-remoting/dubbo-remoting-netty/src/main/java/com/alibaba/dubbo/remoting/transport/netty/NettyServer.java +++ b/dubbo-remoting/dubbo-remoting-netty/src/main/java/com/alibaba/dubbo/remoting/transport/netty/NettyServer.java @@ -74,6 +74,7 @@ protected void doOpen() throws Throwable { // https://issues.jboss.org/browse/NETTY-365 // https://issues.jboss.org/browse/NETTY-379 // final Timer timer = new HashedWheelTimer(new NamedThreadFactory("NettyIdleTimer", true)); + bootstrap.setOption("child.tcpNoDelay", true); bootstrap.setPipelineFactory(new ChannelPipelineFactory() { @Override public ChannelPipeline getPipeline() {