Kaydet (Commit) e607eaa1 authored tarafından Kevin Littlejohn's avatar Kevin Littlejohn

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.
üst 18758430
...@@ -101,7 +101,7 @@ def compare_version(v1, v2): ...@@ -101,7 +101,7 @@ def compare_version(v1, v2):
def ping(url): def ping(url):
try: try:
res = requests.get(url) res = requests.get(url, timeout=3)
except Exception: except Exception:
return False return False
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment