From 8ab3a4111845429112a9af258adfdd88e911fed9 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 22 May 2024 20:25:13 +0300 Subject: [PATCH] increase timeout to prevent crashes --- files/helpers/sanitize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 8822c4b2b..14993bb9b 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -815,7 +815,7 @@ def normalize_url(url): return url.rstrip('=') def normalize_url_gevent(url): - req = requests.get(url, headers=HEADERS, timeout=2, proxies=proxies) + req = requests.get(url, headers=HEADERS, timeout=5, proxies=proxies) return normalize_url(req.url) def validate_css(css):