commit: 80331cc8e622cd66ce96d046fd80530ddc852091
parent: 2242000bd4e9491e9f8d15568b4387540096a982
Author: Noémi Ványi <sitbackandwait@gmail.com>
Date: Wed, 19 Jul 2017 17:24:50 +0200
add timeout errors in search_multiple_requests
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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))