amprolla

devuan's apt repo merger
git clone git://parazyd.org/amprolla.git
Log | Files | Refs | README | LICENSE

commit d679e78a2b3d753c62ef0d3c46578511fb8ee06a
parent 12f35378ba14e19232f1ba1899b5f4d8f437f6fb
Author: parazyd <parazyd@dyne.org>
Date:   Tue,  4 Jul 2017 11:35:01 +0200

try to avoid download interrupts by raising the timeout

Diffstat:
Mlib/net.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/net.py b/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)