diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2025-11-21 08:16:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-21 08:16:24 +0100 |
| commit | ca441f419ca2e3a4a6cf90ac853a3ff6d69df967 (patch) | |
| tree | 85d4cb7f4f52467d596157e7f66d92531619e6bc /searx/engines/seznam.py | |
| parent | 04e66a2bb4dd412c4a60212ebc30d8a4cc983d45 (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/seznam.py')
| -rw-r--r-- | searx/engines/seznam.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/seznam.py b/searx/engines/seznam.py index c7e0fe75f..713697709 100644 --- a/searx/engines/seznam.py +++ b/searx/engines/seznam.py @@ -27,7 +27,7 @@ base_url = 'https://search.seznam.cz/' def request(query, params): - response_index = get(base_url, headers=params['headers'], raise_for_httperror=True) + response_index = get(base_url, headers=params['headers'], raise_for_httperror=True, timout=3) dom = html.fromstring(response_index.text) url_params = { |