From b361aa286723b5fd5ce78a14062c67d0e2f65078 Mon Sep 17 00:00:00 2001 From: pictuga Date: Sun, 19 Apr 2020 12:50:26 +0200 Subject: [PATCH] Add timeout to :get --- morss/morss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss/morss.py b/morss/morss.py index 0ddae35..6df4c4c 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -620,7 +620,7 @@ def cgi_get(environ, start_response): if urlparse(url).scheme not in ['http', 'https']: url = 'http://' + url - data, con, contenttype, encoding = crawler.adv_get(url=url) + data, con, contenttype, encoding = crawler.adv_get(url=url, timeout=TIMEOUT) if contenttype in ['text/html', 'application/xhtml+xml', 'application/xml']: if options.get == 'page':