Skip to content

Commit

Permalink
enable tcp no delay for netty 3 server (apache#1746)
Browse files Browse the repository at this point in the history
(cherry picked from commit 430fb4c)
  • Loading branch information
nobodyiam authored and beiwei.ly committed May 9, 2018
1 parent aefed24 commit ebc0508
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit ebc0508

Please sign in to comment.