[gimp-web] downloads: add a timeout to gimp-check-mirrors.py
- From: Michael Schumacher <schumaml src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web] downloads: add a timeout to gimp-check-mirrors.py
- Date: Thu, 11 Jun 2020 19:09:22 +0000 (UTC)
commit d601c47a46f377a6c93b72536d617e95b7ec4ccf
Author: Michael Schumacher <schumaml gmx de>
Date: Thu Jun 11 19:02:40 2020 +0200
downloads: add a timeout to gimp-check-mirrors.py
tools/downloads/gimp-check-mirrors.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tools/downloads/gimp-check-mirrors.py b/tools/downloads/gimp-check-mirrors.py
index 9ce840fd..17491a5f 100644
--- a/tools/downloads/gimp-check-mirrors.py
+++ b/tools/downloads/gimp-check-mirrors.py
@@ -39,7 +39,7 @@ with fileinput.input(files=(args.mirrorsfile), mode='r') as f:
# for future in concurrent.futures.as_completed(future_to_url):
try:
#data= future.result()
- response = urllib.request.urlopen(request)
+ response = urllib.request.urlopen(url=request, timeout=30)
print(str(response.status) + ' : ' + mirror_uri)
except HTTPError as error:
print(str(error.code) + ' : ' + mirror_uri)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]