In bulk transfers it's better to read into buffers highes than MSS

This commit is contained in:
Alexandre Kandalintsev 2013-03-22 19:23:58 +01:00
parent 11fb59d6ae
commit 1616b9aebf
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class FileGetter(threading.Thread):
f = urllib.request.urlopen(self.url)
self.result = 0
while 1:
contents = f.read(1024)
contents = f.read(102400)
if contents:
self.result += len(contents)
else: