From 4826796724b058d455d7374c28e12840d96cf7ae Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Wed, 12 May 2021 14:01:28 +0200 Subject: [PATCH] increase timeout --- stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stream.py b/stream.py index 775c3da..d0eddb9 100755 --- a/stream.py +++ b/stream.py @@ -186,7 +186,7 @@ class MainHandler(tornado.web.RequestHandler): current = proxy_list.pop() proxy_list = [current] + proxy_list 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: src = resp.url except Exception as e: