diff --git a/Spigot-Server-Patches/0242-handle-PacketPlayInKeepAlive-async-and-revert-keepal.patch b/Spigot-Server-Patches/0242-handle-PacketPlayInKeepAlive-async-and-revert-keepal.patch index 9f4b1d167..ffec6085d 100644 --- a/Spigot-Server-Patches/0242-handle-PacketPlayInKeepAlive-async-and-revert-keepal.patch +++ b/Spigot-Server-Patches/0242-handle-PacketPlayInKeepAlive-async-and-revert-keepal.patch @@ -1,4 +1,4 @@ -From 86f7060fad99e5d5efc34425c2e95e90ce59d109 Mon Sep 17 00:00:00 2001 +From 0e86c660e9a4442f15351c28b2beb151d70af09f Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Thu, 5 Oct 2017 01:54:07 +0100 Subject: [PATCH] handle PacketPlayInKeepAlive async and revert keepalive limit @@ -16,19 +16,20 @@ this solves a read timeout in scenarios where the client isn't sending data to the server, e.g. spectating an entity. diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java -index 36af72387..b0ed57ba1 100644 +index 69ed84af9..b18bf4245 100644 --- a/src/main/java/net/minecraft/server/PlayerConnection.java +++ b/src/main/java/net/minecraft/server/PlayerConnection.java -@@ -181,7 +181,7 @@ public class PlayerConnection implements PacketListenerPlayIn, ITickable { +@@ -180,8 +180,7 @@ public class PlayerConnection implements PacketListenerPlayIn, ITickable { + this.minecraftServer.methodProfiler.a("keepAlive"); long i = this.d(); - -- if (i - this.f >= 30000L) { // CraftBukkit +- +- if (i - this.f >= 25000L) { // CraftBukkit + if (i - this.f >= 15000L) { // CraftBukkit // Paper - revert to 15 if (this.g) { this.disconnect(new ChatMessage("disconnect.timeout", new Object[0])); } else { -@@ -2225,14 +2225,18 @@ public class PlayerConnection implements PacketListenerPlayIn, ITickable { +@@ -2225,14 +2224,18 @@ public class PlayerConnection implements PacketListenerPlayIn, ITickable { } public void a(PacketPlayInKeepAlive packetplayinkeepalive) { diff --git a/work/Bukkit b/work/Bukkit index 4f16bdbab..dcc4266e3 160000 --- a/work/Bukkit +++ b/work/Bukkit @@ -1 +1 @@ -Subproject commit 4f16bdbabbad82b6130b19bcc0a4621dee83e86e +Subproject commit dcc4266e331ab53697ba0f56dc3027d2d691cf88 diff --git a/work/CraftBukkit b/work/CraftBukkit index f8500c0a3..9ab758c7b 160000 --- a/work/CraftBukkit +++ b/work/CraftBukkit @@ -1 +1 @@ -Subproject commit f8500c0a3ea5ecbefa9f8556a480e7fe4247ddbb +Subproject commit 9ab758c7b608854ec658450227c2a17e51845de5