diff options
author | Noémi Ványi <sitbackandwait@gmail.com> | 2017-07-19 17:24:50 +0200 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2017-07-20 13:30:56 +0200 |
commit | 80331cc8e622cd66ce96d046fd80530ddc852091 (patch) | |
tree | b970c7d0ca8044d295b6a68c16a7cea7703d0374 /searx | |
parent | 2242000bd4e9491e9f8d15568b4387540096a982 (diff) | |
download | searxng-80331cc8e622cd66ce96d046fd80530ddc852091.tar.gz searxng-80331cc8e622cd66ce96d046fd80530ddc852091.zip |
add timeout errors in search_multiple_requests
Diffstat (limited to 'searx')
-rw-r--r-- | searx/search.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/searx/search.py b/searx/search.py index 3ea349ade..22aea3661 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)) |