Increase maximum packet size for receive.

master.chocolate-doom.org was serving 500s because the server list
had grown too long.
This commit is contained in:
Simon Howard 2016-01-21 05:07:52 +00:00
parent 65704ad398
commit 47da0dbd89

View file

@ -103,7 +103,7 @@ def get_metadata(addr_str):
r, w, x = select([sock], [], [], METADATA_GATHER_TIME) r, w, x = select([sock], [], [], METADATA_GATHER_TIME)
if sock in r: if sock in r:
packet, remote_addr = sock.recvfrom(1024) packet, remote_addr = sock.recvfrom(4096)
servers += process_metadata_response(packet) servers += process_metadata_response(packet)