mirror of https://github.com/docker/docker-py.git
Merge pull request #285 from silarsis/patch-1
Added a timeout to the https ping
This commit is contained in:
commit
14f9c07b01
|
|
@ -101,7 +101,7 @@ def compare_version(v1, v2):
|
|||
|
||||
def ping(url):
|
||||
try:
|
||||
res = requests.get(url)
|
||||
res = requests.get(url, timeout=3)
|
||||
except Exception:
|
||||
return False
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in New Issue