From 6f54a0d8c16359e76dd0c51ae5d3b055dd203201 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 4 Aug 2012 16:10:03 +0000 Subject: [PATCH] Tweak maximum packet sizes. Subversion-branch: /master Subversion-revision: 2518 --- chocolate-master | 2 +- chocolate-master-test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chocolate-master b/chocolate-master index c1cf89c..62340f3 100755 --- a/chocolate-master +++ b/chocolate-master @@ -31,7 +31,7 @@ import secure_demo # Maximum length of a query response. -MAX_RESPONSE_LEN = 1500 +MAX_RESPONSE_LEN = 1400 # Normal packet types. diff --git a/chocolate-master-test.py b/chocolate-master-test.py index 8a5fc1d..da95f7d 100755 --- a/chocolate-master-test.py +++ b/chocolate-master-test.py @@ -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])