diff --git a/stream.py b/stream.py index b9f16d3..49c418d 100755 --- a/stream.py +++ b/stream.py @@ -176,7 +176,7 @@ class MainHandler(tornado.web.RequestHandler): rand.shuffle(proxy_list) for proxy_temp in proxy_list: try: - resp = requests.head(src, allow_redirects=True, proxies=proxy_temp.req, timeout=1) + resp = requests.head(src, allow_redirects=True, proxies=proxy_temp.req, timeout=(0.1, 2.0)) if resp is not None: src = resp.url except Exception as e: