mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-22 08:57:35 +01:00
Reduce legacy ping threshold to 1000ms
This commit is contained in:
parent
7a9eda4b61
commit
d2bb5e9ad6
@ -1,4 +1,4 @@
|
|||||||
From 61c1e45f834dc0ecbd2859a2ee98150e860187c7 Mon Sep 17 00:00:00 2001
|
From a10281cbbca78bd78307a429563ee68ebfa60caf Mon Sep 17 00:00:00 2001
|
||||||
From: md_5 <md_5@live.com.au>
|
From: md_5 <md_5@live.com.au>
|
||||||
Date: Sun, 3 Feb 2013 10:24:33 +1100
|
Date: Sun, 3 Feb 2013 10:24:33 +1100
|
||||||
Subject: [PATCH] Netty
|
Subject: [PATCH] Netty
|
||||||
@ -199,7 +199,7 @@ index 0000000..cfc0535
|
|||||||
+}
|
+}
|
||||||
diff --git a/src/main/java/org/spigotmc/netty/NettyNetworkManager.java b/src/main/java/org/spigotmc/netty/NettyNetworkManager.java
|
diff --git a/src/main/java/org/spigotmc/netty/NettyNetworkManager.java b/src/main/java/org/spigotmc/netty/NettyNetworkManager.java
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000..998659d
|
index 0000000..3801c0e
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/src/main/java/org/spigotmc/netty/NettyNetworkManager.java
|
+++ b/src/main/java/org/spigotmc/netty/NettyNetworkManager.java
|
||||||
@@ -0,0 +1,224 @@
|
@@ -0,0 +1,224 @@
|
||||||
@ -239,7 +239,7 @@ index 0000000..998659d
|
|||||||
+ private static final PrivateKey key = server.F().getPrivate();
|
+ private static final PrivateKey key = server.F().getPrivate();
|
||||||
+ private static final NettyServerConnection serverConnection = (NettyServerConnection) server.ae();
|
+ private static final NettyServerConnection serverConnection = (NettyServerConnection) server.ae();
|
||||||
+ /*========================================================================*/
|
+ /*========================================================================*/
|
||||||
+ static final int LEGACY_PING_TIME = 1500;
|
+ static final int LEGACY_PING_TIME = 1000;
|
||||||
+ Packet254GetInfo pingRequest;
|
+ Packet254GetInfo pingRequest;
|
||||||
+ long lastPingRead;
|
+ long lastPingRead;
|
||||||
+ /*========================================================================*/
|
+ /*========================================================================*/
|
||||||
|
Loading…
Reference in New Issue
Block a user