-
-
Notifications
You must be signed in to change notification settings - Fork 309
Expand file tree
/
Copy path0014-Enable-TCP_NODELAY.patch
More file actions
22 lines (18 loc) · 956 Bytes
/
0014-Enable-TCP_NODELAY.patch
File metadata and controls
22 lines (18 loc) · 956 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From bf99da1f7082f84c54c8b09b85063b91beb49475 Mon Sep 17 00:00:00 2001
From: Harry <me@harry5573.uk>
Date: Sun, 24 Jan 2016 15:13:29 -0700
Subject: [PATCH] Enable TCP_NODELAY.
This is enabled by default on CraftBukkit/Spigot >= 1.8 and may help with network performance.
diff --git a/proxy/src/main/java/net/md_5/bungee/netty/PipelineUtils.java b/proxy/src/main/java/net/md_5/bungee/netty/PipelineUtils.java
index cfbab43a..9caf3b80 100644
--- a/proxy/src/main/java/net/md_5/bungee/netty/PipelineUtils.java
+++ b/proxy/src/main/java/net/md_5/bungee/netty/PipelineUtils.java
@@ -218,6 +218,7 @@ public class PipelineUtils
{
// IP_TOS is not supported (Windows XP / Windows Server 2003)
}
+ ch.config().setOption( ChannelOption.TCP_NODELAY, true );
ch.config().setWriteBufferWaterMark( MARK );
ch.pipeline().addLast( FRAME_DECODER, new Varint21FrameDecoder() );
--
2.49.0