donate-cpu-server.py: Increase max accepted result size to 2 MB

This commit is contained in:
versat 2019-01-11 14:58:27 +01:00
parent 49bad106bb
commit 0c93e0c8cb
1 changed files with 2 additions and 1 deletions

View File

@ -584,7 +584,8 @@ def server(server_address_port, packages, packageIndex, resultPath):
data = cmd[6:]
try:
t = 0
while (len(data) < 1024 * 1024) and (not data.endswith('\nDONE')) and (t < 10):
max_data_size = 2 * 1024 * 1024
while (len(data) < max_data_size) and (not data.endswith('\nDONE')) and (t < 10):
d = connection.recv(1024)
if d:
t = 0