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:
|
try:
|
||||||
if (time.time() - self.starttime) <= 10:
|
if (time.time() - self.starttime) <= 10:
|
||||||
f = urlopen(self.url, self.data)
|
f = urlopen(self.url, self.data)
|
||||||
contents = f.read()
|
f.read(11)
|
||||||
f.close()
|
f.close()
|
||||||
self.result = len(self.data)
|
self.result = len(self.data)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue