2022-03-21 15:08:26 +01:00
|
|
|
From 9a4d153e6af0749088ef8668c8293d5b469cb020 Mon Sep 17 00:00:00 2001
|
2016-05-28 18:34:39 +02:00
|
|
|
From: Harry <me@harry5573.uk>
|
2018-05-28 22:53:01 +02:00
|
|
|
Date: Sun, 24 Jan 2016 15:13:29 -0700
|
2016-05-28 18:34:39 +02:00
|
|
|
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
|
2022-03-21 15:08:26 +01:00
|
|
|
index 61165e43..2d373660 100644
|
2016-05-28 18:34:39 +02:00
|
|
|
--- a/proxy/src/main/java/net/md_5/bungee/netty/PipelineUtils.java
|
|
|
|
+++ b/proxy/src/main/java/net/md_5/bungee/netty/PipelineUtils.java
|
2022-03-21 15:08:26 +01:00
|
|
|
@@ -165,6 +165,7 @@ public class PipelineUtils
|
2016-05-28 18:34:39 +02:00
|
|
|
{
|
|
|
|
// IP_TOS is not supported (Windows XP / Windows Server 2003)
|
|
|
|
}
|
|
|
|
+ ch.config().setOption( ChannelOption.TCP_NODELAY, true );
|
|
|
|
ch.config().setAllocator( PooledByteBufAllocator.DEFAULT );
|
2017-08-18 11:36:42 +02:00
|
|
|
ch.config().setWriteBufferWaterMark( MARK );
|
2016-05-28 18:34:39 +02:00
|
|
|
|
|
|
|
--
|
2022-03-21 15:08:26 +01:00
|
|
|
2.32.0 (Apple Git-132)
|
2016-05-28 18:34:39 +02:00
|
|
|
|