From 96759fdd5dbc222c3d693f68c85a98b5557bf405 Mon Sep 17 00:00:00 2001 From: Dastgir Date: Thu, 17 Dec 2015 13:43:00 +0530 Subject: Update max packet size according to client date --- src/common/socket.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/common/socket.c') diff --git a/src/common/socket.c b/src/common/socket.c index 362fe78db..88d35e57a 100644 --- a/src/common/socket.c +++ b/src/common/socket.c @@ -238,7 +238,11 @@ fd_set readfds; // Maximum packet size in bytes, which the client is able to handle. // Larger packets cause a buffer overflow and stack corruption. -static size_t socket_max_client_packet = 24576; +#if PACKETVER >= 20131223 +static size_t socket_max_client_packet = 0xFFFF; +#else +static size_t socket_max_client_packet = 0x6000; +#endif #ifdef SHOW_SERVER_STATS // Data I/O statistics -- cgit v1.2.3-60-g2f50