summaryrefslogtreecommitdiff
path: root/searx/engines/archlinux.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2025-11-21 08:16:24 +0100
committerGitHub <noreply@github.com>2025-11-21 08:16:24 +0100
commitca441f419ca2e3a4a6cf90ac853a3ff6d69df967 (patch)
tree85d4cb7f4f52467d596157e7f66d92531619e6bc /searx/engines/archlinux.py
parent04e66a2bb4dd412c4a60212ebc30d8a4cc983d45 (diff)
[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 <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/engines/archlinux.py')
-rw-r--r--searx/engines/archlinux.py2
1 files changed, 1 insertions, 1 deletions
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.")