From ca441f419ca2e3a4a6cf90ac853a3ff6d69df967 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Fri, 21 Nov 2025 08:16:24 +0100 Subject: [fix] engines - set hard timouts in *sub-request* (#5460) The requests changed here all run outside of the network context timeout, thereby preventing the engine's timeout from being applied (the engine's timeout can become longer than it was configured). Signed-off-by: Markus Heiser --- searx/engines/archlinux.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searx/engines/archlinux.py') diff --git a/searx/engines/archlinux.py b/searx/engines/archlinux.py index 9b8e39a05..9e3adf154 100644 --- a/searx/engines/archlinux.py +++ b/searx/engines/archlinux.py @@ -120,7 +120,7 @@ def fetch_traits(engine_traits: EngineTraits): 'zh': 'Special:搜索', } - resp = get('https://wiki.archlinux.org/') + resp = get('https://wiki.archlinux.org/', timeout=3) if not resp.ok: # type: ignore print("ERROR: response from wiki.archlinux.org is not OK.") -- cgit v1.2.3