mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-19 18:15:50 +00:00
reduce max payload
This commit is contained in:
@@ -186,7 +186,8 @@ private:
|
||||
}
|
||||
|
||||
const size_t HEADER_SIZE = 16;
|
||||
const size_t MAX_DATAGRAM_SIZE = 65507; // Standard UDP datagram size
|
||||
const size_t MAX_DATAGRAM_SIZE =
|
||||
65487; // Allow for ipv6 header 40 bytes + 8 bytes of udp header
|
||||
const size_t MAX_PAYLOAD_SIZE =
|
||||
MAX_DATAGRAM_SIZE - HEADER_SIZE; // 65,491 bytes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user