mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-30 21:17:53 +01:00
Set socket size to max packet size
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
0f2d850dce
commit
463a46ccc0
@ -18,8 +18,8 @@ public final class Server {
|
||||
public static final Logger LOGGER = LoggerFactory.getLogger(Server.class);
|
||||
public static final int WORKER_COUNT = Integer.getInteger("minestom.workers",
|
||||
Runtime.getRuntime().availableProcessors());
|
||||
public static final int SOCKET_BUFFER_SIZE = Integer.getInteger("minestom.buffer-size", 1_048_575);
|
||||
public static final int MAX_PACKET_SIZE = 2_097_151; // 3 bytes var-int
|
||||
public static final int SOCKET_BUFFER_SIZE = Integer.getInteger("minestom.buffer-size", MAX_PACKET_SIZE);
|
||||
public static final boolean NO_DELAY = true;
|
||||
|
||||
private volatile boolean stop;
|
||||
|
Loading…
Reference in New Issue
Block a user