increase timeout

This commit is contained in:
Roy Olav Purser 2021-05-11 15:48:01 +02:00
parent e03280740f
commit c9fe190cca
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -172,7 +172,7 @@ class MainHandler(tornado.web.RequestHandler):
if isinstance(proxy_list, list): if isinstance(proxy_list, list):
for proxy_temp in proxy_list: for proxy_temp in proxy_list:
try: try:
resp = requests.head(src, allow_redirects=True, proxies=proxy_temp.req, timeout=(0.1, 2.0)) resp = requests.head(src, allow_redirects=True, proxies=proxy_temp.req, timeout=(0.3, 2.0))
if resp is not None: if resp is not None:
src = resp.url src = resp.url
except Exception as e: except Exception as e: