Better handle not failing over on a read timeout

The existing Velocity logic was pretty optimistic, hoping the player connection would stay alive long enough to accept a connection to another server. Now, if we notice a read timeout on the server end, we'll treat the disconnect as "unsafe" and disconnect the player immediately.

I've added a configuration option to solve the issue in the way BungeeCord does it. This could cause issues with servers that extensively modify the server pipeline and could degrade the user experience, though. Let's try this more conservative and see if it helps,
This commit is contained in:
Andrew Steinborn
2020-07-20 21:55:33 -04:00
parent f9f60e1489
commit cb261c6513
8 changed files with 40 additions and 11 deletions

View File

@@ -209,7 +209,7 @@ public final class KickedFromServerEvent implements
return LegacyText3ComponentSerializer.get().serialize(message);
}
public net.kyori.adventure.text.Component getMessageComponent() {
public net.kyori.adventure.text.@Nullable Component getMessageComponent() {
return message;
}