From c9fe190ccaed352db975b67c34a555fe59cdedb2 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Tue, 11 May 2021 15:48:01 +0200 Subject: [PATCH] increase timeout --- stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stream.py b/stream.py index db7621f..eba0231 100755 --- a/stream.py +++ b/stream.py @@ -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: