mirror of
https://github.com/PaperMC/Waterfall.git
synced 2025-02-10 17:01:22 +01:00
23 lines
948 B
Diff
23 lines
948 B
Diff
From 2cc77d1ddf7c29c825de970bd7cefcdfab496674 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 380b6012..f1fce77b 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
|
|
@@ -194,6 +194,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.47.0
|
|
|