mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
[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>
This commit is contained in:
@@ -124,7 +124,7 @@ def get_client_id() -> str | None:
|
||||
|
||||
client_id = ""
|
||||
url = "https://soundcloud.com"
|
||||
resp = http_get(url, timeout=10)
|
||||
resp = http_get(url, timeout=3)
|
||||
|
||||
if not resp.ok:
|
||||
logger.error("init: GET %s failed", url)
|
||||
|
||||
Reference in New Issue
Block a user