Skip to content
This repository was archived by the owner on Dec 29, 2023. It is now read-only.

Commit 88f4345

Browse files
committed
Implement [Nacho-0027] Netty IP_TOS 0x18 by Health Logan Campbell
1 parent fed8bbb commit 88f4345

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ Titanium implements patches from other engines as well. **All credits go to the
157157
[Nacho-0023] Optimize EntityTracker for the chunk updater
158158
[Nacho-0024] Do not create new BlockPosition when loading chunk
159159
[Nacho-0025] Disable random tickSpeed being modified
160+
[Nacho-0027] Netty IP_TOS 0x18 by Health Logan Campbell
160161
[Nacho-0050] Custom knockback
161162
[Nacho-????] Prevent most NBT related overflow exploits
162163
[Nacho-????] Async TNT by Sculas
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
From a304bce63e7bc732ec71f8108daa35be826bd7e3 Mon Sep 17 00:00:00 2001
2+
From: Heath Logan Campbell <[email protected]>
3+
Date: Fri, 31 Jul 2020 12:43:00 +0200
4+
Subject: [PATCH] Implement [Nacho-0027] Netty IP_TOS 0x18 by Health Logan
5+
Campbell
6+
7+
8+
diff --git a/src/main/java/net/minecraft/server/ServerConnection.java b/src/main/java/net/minecraft/server/ServerConnection.java
9+
index 4a2a1b565..d21a9293d 100644
10+
--- a/src/main/java/net/minecraft/server/ServerConnection.java
11+
+++ b/src/main/java/net/minecraft/server/ServerConnection.java
12+
@@ -117,6 +117,7 @@ public class ServerConnection {
13+
protected void initChannel(Channel channel) throws Exception {
14+
try {
15+
channel.config().setOption(ChannelOption.TCP_NODELAY, Boolean.valueOf(true));
16+
+ channel.config().setOption(ChannelOption.IP_TOS, 0x18); // Nacho - Optimize networking by using IP_TOS
17+
} catch (ChannelException channelexception) {
18+
;
19+
}
20+
--
21+
2.38.1.windows.1
22+

0 commit comments

Comments
 (0)