mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-30 13:08:19 +01:00
Reduce default socket send buffer size
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
ca6f0b1eb5
commit
7a4086c889
@ -18,7 +18,7 @@ public final class Server {
|
|||||||
public static final int WORKER_COUNT = Integer.getInteger("minestom.workers",
|
public static final int WORKER_COUNT = Integer.getInteger("minestom.workers",
|
||||||
Math.max(1, Runtime.getRuntime().availableProcessors() / 2));
|
Math.max(1, Runtime.getRuntime().availableProcessors() / 2));
|
||||||
public static final int MAX_PACKET_SIZE = 2_097_151; // 3 bytes var-int
|
public static final int MAX_PACKET_SIZE = 2_097_151; // 3 bytes var-int
|
||||||
public static final int SOCKET_SEND_BUFFER_SIZE = Integer.getInteger("minestom.send-buffer-size", MAX_PACKET_SIZE);
|
public static final int SOCKET_SEND_BUFFER_SIZE = Integer.getInteger("minestom.send-buffer-size", 262_143);
|
||||||
public static final int SOCKET_RECEIVE_BUFFER_SIZE = Integer.getInteger("minestom.receive-buffer-size", 32_767);
|
public static final int SOCKET_RECEIVE_BUFFER_SIZE = Integer.getInteger("minestom.receive-buffer-size", 32_767);
|
||||||
|
|
||||||
public static final boolean NO_DELAY = true;
|
public static final boolean NO_DELAY = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user