In bulk transfers it's better to read into buffers highes than MSS
This commit is contained in:
parent
11fb59d6ae
commit
1616b9aebf
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue