Increase the read size to 10k from 1k, Fixes #12
This commit is contained in:
parent
4f055328e7
commit
f358b5ec27
|
@ -71,7 +71,7 @@ class FileGetter(threading.Thread):
|
||||||
f = urllib2.urlopen(self.url)
|
f = urllib2.urlopen(self.url)
|
||||||
self.result = 0
|
self.result = 0
|
||||||
while 1:
|
while 1:
|
||||||
contents = f.read(1024)
|
contents = f.read(10240)
|
||||||
if contents:
|
if contents:
|
||||||
self.result += len(contents)
|
self.result += len(contents)
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -64,7 +64,7 @@ class FileGetter(threading.Thread):
|
||||||
f = urllib.request.urlopen(self.url)
|
f = urllib.request.urlopen(self.url)
|
||||||
self.result = 0
|
self.result = 0
|
||||||
while 1:
|
while 1:
|
||||||
contents = f.read(1024)
|
contents = f.read(10240)
|
||||||
if contents:
|
if contents:
|
||||||
self.result += len(contents)
|
self.result += len(contents)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue