Skip to content

Add tcp fast open #825

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions BungeeCord-Patches/0067-Add-tcp-fast-open.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
From 975be85816950e37799375a99fd69d089cee6347 Mon Sep 17 00:00:00 2001
From: Ismael Hanbel <[email protected]>
Date: Tue, 17 Oct 2023 17:01:57 +0200
Subject: [PATCH] Add tcp fast open


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 6a045d16..9f94572c 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
@@ -228,6 +228,7 @@ public class PipelineUtils
try
{
ch.config().setOption( ChannelOption.IP_TOS, 0x18 );
+ ch.config().setOption( ChannelOption.TCP_FASTOPEN, 3); //Waterfall
} catch ( ChannelException ex )
{
// IP_TOS is not supported (Windows XP / Windows Server 2003)
--
2.41.0.windows.1