From fc92f4651ae730eb559f28ca9411854c1fdec52c Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Fri, 16 Feb 2024 23:50:03 +0100 Subject: [PATCH] add a GET response timeout of 1 minute --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index cb0ac94c..666810c4 100755 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ "x64": "64"} def download_check_fail(url, expected_type): - response = requests.get(url, allow_redirects=True) + response = requests.get(url, allow_redirects=True, timeout=60) if not response.ok: raise RuntimeError("error retrieving "+response.url) if response.headers.get('content-type') != expected_type: