Dependency update; re-use Thread.MAX_PRIORITY for Spigot; other network optimizations

This commit is contained in:
Camotoy 2021-08-31 19:57:56 -04:00
parent 7fe7dc1d70
commit 0069566803
No known key found for this signature in database
GPG key ID: 7EEFB66FE798081F
3 changed files with 10 additions and 6 deletions

View file

@ -118,7 +118,8 @@ public class GeyserSpigotInjector extends GeyserInjector {
initChannel.invoke(childHandler, ch);
}
})
.group(new DefaultEventLoopGroup(0, new DefaultThreadFactory("Geyser Spigot connection thread")))
// Set to MAX_PRIORITY as MultithreadEventLoopGroup#newDefaultThreadFactory which DefaultEventLoopGroup implements does by default
.group(new DefaultEventLoopGroup(0, new DefaultThreadFactory("Geyser Spigot connection thread", Thread.MAX_PRIORITY)))
.localAddress(LocalAddress.ANY))
.bind()
.syncUninterruptibly();