Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
Enable TCP_NODELAY on Minecraft proxy connections too
Dieser Commit ist enthalten in:
Ursprung
5dbf8f1736
Commit
f75a51638c
@ -55,6 +55,7 @@ public class VelocityServerConnection implements MinecraftConnectionAssociation,
|
|||||||
public CompletableFuture<ConnectionRequestBuilder.Result> connect() {
|
public CompletableFuture<ConnectionRequestBuilder.Result> connect() {
|
||||||
CompletableFuture<ConnectionRequestBuilder.Result> result = new CompletableFuture<>();
|
CompletableFuture<ConnectionRequestBuilder.Result> result = new CompletableFuture<>();
|
||||||
server.initializeGenericBootstrap()
|
server.initializeGenericBootstrap()
|
||||||
|
.option(ChannelOption.TCP_NODELAY, true)
|
||||||
.handler(new ChannelInitializer<Channel>() {
|
.handler(new ChannelInitializer<Channel>() {
|
||||||
@Override
|
@Override
|
||||||
protected void initChannel(Channel ch) throws Exception {
|
protected void initChannel(Channel ch) throws Exception {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren