Tweak maximum packet sizes.

Subversion-branch: /master
Subversion-revision: 2518
This commit is contained in:
Simon Howard 2012-08-04 16:10:03 +00:00
parent 9cea863e5d
commit 6f54a0d8c1
2 changed files with 2 additions and 2 deletions

View file

@ -31,7 +31,7 @@ import secure_demo
# Maximum length of a query response.
MAX_RESPONSE_LEN = 1500
MAX_RESPONSE_LEN = 1400
# Normal packet types.

View file

@ -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])