Increase the read size to 10k from 1k, Fixes #12

This commit is contained in:
Matt Martz 2013-04-27 08:59:34 -05:00
parent 4f055328e7
commit f358b5ec27
2 changed files with 2 additions and 2 deletions

View File

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

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(10240)
if contents:
self.result += len(contents)
else: