increase timeout
This commit is contained in:
parent
e03280740f
commit
c9fe190cca
@ -172,7 +172,7 @@ class MainHandler(tornado.web.RequestHandler):
|
||||
if isinstance(proxy_list, list):
|
||||
for proxy_temp in proxy_list:
|
||||
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:
|
||||
src = resp.url
|
||||
except Exception as e:
|
||||
|
Loading…
Reference in New Issue
Block a user