Codechange: allow different limits in packet sizes
This commit is contained in:
@@ -119,7 +119,8 @@ void NetworkUDPSocketHandler::ReceivePackets()
|
||||
struct sockaddr_storage client_addr;
|
||||
memset(&client_addr, 0, sizeof(client_addr));
|
||||
|
||||
Packet p(this, SEND_MTU);
|
||||
/* The limit is SEND_MTU, but also allocate that much as we need to read the whole packet in one go. */
|
||||
Packet p(this, SEND_MTU, SEND_MTU);
|
||||
socklen_t client_len = sizeof(client_addr);
|
||||
|
||||
/* Try to receive anything */
|
||||
|
Reference in New Issue
Block a user