Improve performance when reading data after upload. See #31
This commit is contained in:
parent
cbb249b96d
commit
2abf94d46c
|
@ -205,7 +205,7 @@ class FilePutter(threading.Thread):
|
|||
try:
|
||||
if (time.time() - self.starttime) <= 10:
|
||||
f = urlopen(self.url, self.data)
|
||||
contents = f.read()
|
||||
f.read(11)
|
||||
f.close()
|
||||
self.result = len(self.data)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue