diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/mmo.h | 2 | ||||
-rw-r--r-- | src/common/socket.c | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/common/mmo.h b/src/common/mmo.h index cb8a75b24..8444a8d67 100644 --- a/src/common/mmo.h +++ b/src/common/mmo.h @@ -214,6 +214,8 @@ #define JOBL_BABY 0x2000 //8192 #define JOBL_THIRD 0x4000 //16384 +#define SCRIPT_VARNAME_LENGTH 32 ///< Maximum length of a script variable + struct hplugin_data_store; enum item_types { diff --git a/src/common/socket.c b/src/common/socket.c index 87575f5c3..f67c3d074 100644 --- a/src/common/socket.c +++ b/src/common/socket.c @@ -254,7 +254,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 |