ttry to avoid download interrupts by raising the timeout - amprolla - devuan's apt repo merger HTML git clone git://parazyd.org/amprolla.git DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit d679e78a2b3d753c62ef0d3c46578511fb8ee06a DIR parent 12f35378ba14e19232f1ba1899b5f4d8f437f6fb HTML Author: parazyd <parazyd@dyne.org> Date: Tue, 4 Jul 2017 11:35:01 +0200 ttry to avoid download interrupts by raising the timeout Diffstat: M lib/net.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/lib/net.py b/lib/net.py t@@ -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)