Skip to content

Commit aa7357f

Browse files
committed
Tweak max message and UDP payload sizes to factor in TURN relay overhead
1 parent c3d9bc0 commit aa7357f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Core/GameEngine/Include/GameNetwork/NetworkDefs.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ static constexpr const Int MAX_LANAPI_PACKET_SIZE = RESTRICTED_UDP_PAYLOAD;
6868
#if RETAIL_COMPATIBLE_NETWORKING
6969
static constexpr const Int MAX_PACKET_SIZE = RESTRICTED_UDP_PAYLOAD;
7070
static constexpr const Int MAX_MESSAGE_LEN = 1024;
71+
#elif defined(GENERALS_ONLINE)
72+
static constexpr const Int MAX_PACKET_SIZE = MAX_UDP_PAYLOAD;
73+
static constexpr const Int MAX_MESSAGE_LEN = 1104;
7174
#else
7275
static constexpr const Int MAX_PACKET_SIZE = MAX_UDP_PAYLOAD;
7376
static constexpr const Int MAX_MESSAGE_LEN = MAX_UDP_PAYLOAD;

0 commit comments

Comments
 (0)