Special case Keep Alive packets from Anti Xray
If a server enables Anti Xray, packet sending can be delayed until the chunk has been obfuscated, blocking the entire queue from going out. On a busy server, considering Anti Xray can only operate on a single thread, it is quite possible the obfuscation backlog can get quite behind resulting in a delay of sending packets. And logging in is a clear area where lots of chunks are going to be queued for obfuscation.... We should probably special case a few more than this (such as chat), but this will hopefully help the keep alive issues some people run into.
This commit is contained in:
parent
a76b774070
commit
5729bc716e
2 changed files with 25 additions and 25 deletions
|
@ -1,4 +1,4 @@
|
|||
From d911fa59c930a36aa9c0ca24f9741fdedfecc6cb Mon Sep 17 00:00:00 2001
|
||||
From dad171c74df2dc24940141bce47acdc433258603 Mon Sep 17 00:00:00 2001
|
||||
From: willies952002 <admin@domnian.com>
|
||||
Date: Mon, 28 Nov 2016 10:16:39 -0500
|
||||
Subject: [PATCH] Allow Reloading of Command Aliases
|
||||
|
@ -72,7 +72,7 @@ index adfc7aae2..460fda05a 100644
|
|||
+ // Paper end
|
||||
}
|
||||
diff --git a/src/main/java/org/bukkit/command/defaults/ReloadCommand.java b/src/main/java/org/bukkit/command/defaults/ReloadCommand.java
|
||||
index c62da4131..af8ab73fe 100644
|
||||
index c62da4131..0c7ba0718 100644
|
||||
--- a/src/main/java/org/bukkit/command/defaults/ReloadCommand.java
|
||||
+++ b/src/main/java/org/bukkit/command/defaults/ReloadCommand.java
|
||||
@@ -13,7 +13,7 @@ public class ReloadCommand extends BukkitCommand {
|
||||
|
@ -98,6 +98,14 @@ index c62da4131..af8ab73fe 100644
|
|||
} else if ("confirm".equalsIgnoreCase(args[0])) {
|
||||
confirmed = true;
|
||||
} else {
|
||||
@@ -53,6 +60,6 @@ public class ReloadCommand extends BukkitCommand {
|
||||
@NotNull
|
||||
@Override
|
||||
public List<String> tabComplete(@NotNull CommandSender sender, @NotNull String alias, @NotNull String[] args) throws IllegalArgumentException {
|
||||
- return java.util.Collections.singletonList("permissions"); // Paper
|
||||
+ return com.google.common.collect.Lists.newArrayList("permissions", "commands"); // Paper
|
||||
}
|
||||
}
|
||||
--
|
||||
2.26.2
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue