Skip to content

Commit e607eaa

Browse files
committed
Added a timeout to the https ping
For those not using https who might have it firewalled, this request without a timeout causes significant delay. Adding a moderately generous timeout shouldn't affect anyone negatively, but will make things a bit nicer otherwise.
1 parent 1875843 commit e607eaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/utils/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def compare_version(v1, v2):
101101

102102
def ping(url):
103103
try:
104-
res = requests.get(url)
104+
res = requests.get(url, timeout=3)
105105
except Exception:
106106
return False
107107
else:

0 commit comments

Comments
 (0)