mirror of
https://github.com/timberjoegithub/GoogleScrape.git
synced 2026-07-22 00:19:48 +00:00
change timeout for wordpress
This commit is contained in:
@@ -806,7 +806,7 @@ def check_is_port_open(host, port):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
try:
|
try:
|
||||||
is_web_up = urllib3.request("GET", host)
|
is_web_up = urllib3.request("GET", host, timeout=10)
|
||||||
if is_web_up.status == 200:
|
if is_web_up.status == 200:
|
||||||
return True
|
return True
|
||||||
except AttributeError as error:
|
except AttributeError as error:
|
||||||
|
|||||||
Reference in New Issue
Block a user