From 80331cc8e622cd66ce96d046fd80530ddc852091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Wed, 19 Jul 2017 17:24:50 +0200 Subject: [PATCH] add timeout errors in search_multiple_requests --- searx/search.py | 1 + 1 file changed, 1 insertion(+) diff --git a/searx/search.py b/searx/search.py index 3ea349ad..22aea366 100644 --- a/searx/search.py +++ b/searx/search.py @@ -179,6 +179,7 @@ def search_multiple_requests(requests, result_container, start_time, timeout_lim remaining_time = max(0.0, timeout_limit - (time() - start_time)) th.join(remaining_time) if th.isAlive(): + result_container.add_unresponsive_engine((th._engine_name, gettext('timeout'))) logger.warning('engine timeout: {0}'.format(th._engine_name))