mirror of
https://github.com/chocolate-doom/master-server.git
synced 2024-11-10 07:11:38 +00:00
Tweak maximum packet sizes.
Subversion-branch: /master Subversion-revision: 2518
This commit is contained in:
parent
9cea863e5d
commit
6f54a0d8c1
2 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ import secure_demo
|
|||
|
||||
# Maximum length of a query response.
|
||||
|
||||
MAX_RESPONSE_LEN = 1500
|
||||
MAX_RESPONSE_LEN = 1400
|
||||
|
||||
# Normal packet types.
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ def get_response(sock, addr, message_type):
|
|||
""" Wait for a response of the specified type to be received. """
|
||||
|
||||
while True:
|
||||
packet, remote_addr = sock.recvfrom(1024)
|
||||
packet, remote_addr = sock.recvfrom(1400)
|
||||
|
||||
if remote_addr == addr:
|
||||
type, = struct.unpack(">h", packet[0:2])
|
||||
|
|
Loading…
Reference in a new issue