Browse Source

try to avoid download interrupts by raising the timeout

keep-around/e977c9e07f177e8bc2b51265de1bc93475397f61
parazyd 6 years ago
parent
commit
d679e78a2b
Signed by untrusted user: parazyd GPG Key ID: F0CB28FCF78637DE
  1. 2
      lib/net.py

2
lib/net.py

@ -20,7 +20,7 @@ def download(uris):
info("dl: %s" % url)
try:
r = requests.get(url, stream=True)
r = requests.get(url, stream=True, timeout=20)
except requests.exceptions.ConnectionError:
warn("Caught exception: Connection reset. Retrying.")
return download(uris)

Loading…
Cancel
Save