mirror of
https://github.com/PaperMC/Velocity.git
synced 2025-01-30 14:59:39 +08:00
Enable TCP_NODELAY on Minecraft proxy connections too
This commit is contained in:
parent
5dbf8f1736
commit
f75a51638c
@ -55,6 +55,7 @@ public class VelocityServerConnection implements MinecraftConnectionAssociation,
|
||||
public CompletableFuture<ConnectionRequestBuilder.Result> connect() {
|
||||
CompletableFuture<ConnectionRequestBuilder.Result> result = new CompletableFuture<>();
|
||||
server.initializeGenericBootstrap()
|
||||
.option(ChannelOption.TCP_NODELAY, true)
|
||||
.handler(new ChannelInitializer<Channel>() {
|
||||
@Override
|
||||
protected void initChannel(Channel ch) throws Exception {
|
||||
|
Loading…
Reference in New Issue
Block a user