increase timeout
This commit is contained in:
parent
a57b5ef408
commit
4826796724
@ -186,7 +186,7 @@ class MainHandler(tornado.web.RequestHandler):
|
|||||||
current = proxy_list.pop()
|
current = proxy_list.pop()
|
||||||
proxy_list = [current] + proxy_list
|
proxy_list = [current] + proxy_list
|
||||||
try:
|
try:
|
||||||
resp = requests.head(src, allow_redirects=True, proxies=current.req, timeout=(0.3, 2.0))
|
resp = requests.head(src, allow_redirects=True, proxies=current.req, timeout=2)
|
||||||
if resp is not None:
|
if resp is not None:
|
||||||
src = resp.url
|
src = resp.url
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user