Skip to content

Commit 14f9c07

Browse files
committed
Merge pull request #285 from silarsis/patch-1
Added a timeout to the https ping
2 parents 1875843 + e607eaa commit 14f9c07

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)