From 182107ebce7aa486691adbcbc0499bb26a72bb82 Mon Sep 17 00:00:00 2001 From: zicodxx Date: Tue, 23 Nov 2010 16:12:09 +0100 Subject: [PATCH] changing max UDP size again - increasing to 576 - should still be safe --- CHANGELOG.txt | 2 +- main/net_udp.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 142cf44ec..09d4ed4f0 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -2,7 +2,7 @@ D2X-Rebirth Changelog 20101123 -------- -main/net_udp.h: reducing max buffer size of an UDP packet from 1024 to 512 bytes - should prevent possible turncating, especially when sending obejcts where max size is actually used +main/net_udp.h: reducing max buffer size of an UDP packet from 1024 to 576 bytes - should prevent possible turncating, especially when sending obejcts where max size is actually used 20101122 -------- diff --git a/main/net_udp.h b/main/net_udp.h index ee28a0493..e990d8b7f 100644 --- a/main/net_udp.h +++ b/main/net_udp.h @@ -40,7 +40,7 @@ void net_udp_send_netgame_update(); #define UDP_OBJ_PACKETS_PER_FRAME 1 // Following are static defines for the buffer size of various packets. IF you change the packets, you must change the size, too. -#define UPKT_MAX_SIZE 512 // Max size for a packet - just for the buffers +#define UPKT_MAX_SIZE 576 // Max size for a packet - just for the buffers #define UPKT_GAME_INFO_REQ_SIZE 11 #define UPKT_SEQUENCE_SIZE 14 #define UPKT_PING_SIZE 33