[IMP]Uptime : use default timeout, to 6 secs
This commit is contained in:
parent
3c08ba5ac7
commit
1c1e447db0
@ -11,7 +11,7 @@ from config import HC_ROOT, CONFIG
|
|||||||
|
|
||||||
def check_domain(domain):
|
def check_domain(domain):
|
||||||
try:
|
try:
|
||||||
r = get('https://%s' % domain)
|
r = get('https://%s' % domain, timeout=6)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
return (e, 0)
|
return (e, 0)
|
||||||
return (r.status_code, r.elapsed)
|
return (r.status_code, r.elapsed)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user