Add timeout to http get. - gopherbay - piratebay gopher interface
(HTM) git clone git://bitreich.org/gopherbay git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/gopherbay
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
(DIR) LICENSE
---
(DIR) commit d8ecd3a2fbd22313812bb8acacaeadf9ca5be8e8
(DIR) parent 7606276f8b00c6f425ddf33d78da4bae9f9a6ed8
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Sat, 27 Jan 2024 14:25:59 +0100
Add timeout to http get.
Diffstat:
M q.dcgi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/q.dcgi b/q.dcgi
@@ -118,7 +118,7 @@ def print_trackers():
def httpget(url):
- r = get(url)
+ r = get(url, timeout=10)
return r.text