mirror of
https://github.com/PaperMC/Waterfall.git
synced 2024-12-11 03:25:07 +01:00
0dc74bb242
Upstream has released updates that appear to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing BungeeCord Changes: dfd847f7 Update native libraries a1fee720 Deprecate string join 963854f8 Remove use of internal gson API 2ef5e700 #3451: Improve length field prepending on bungee -> server connection 2e6f0dd4 #3450: Use readRetainedSlice method instead of slice+retain+skip
23 lines
948 B
Diff
23 lines
948 B
Diff
From 209fd1c50168f4b5d5db23d0cdd7aef25366d79b 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 2d6885a9..3f30da0c 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
|
|
@@ -174,6 +174,7 @@ public class PipelineUtils
|
|
{
|
|
// IP_TOS is not supported (Windows XP / Windows Server 2003)
|
|
}
|
|
+ ch.config().setOption( ChannelOption.TCP_NODELAY, true );
|
|
ch.config().setAllocator( PooledByteBufAllocator.DEFAULT );
|
|
ch.config().setWriteBufferWaterMark( MARK );
|
|
|
|
--
|
|
2.40.0
|
|
|