Ver código fonte

add timeout errors in search_multiple_requests

Noémi Ványi 7 anos atrás
pai
commit
80331cc8e6
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1
    0
      searx/search.py

+ 1
- 0
searx/search.py Ver arquivo

@@ -179,6 +179,7 @@ def search_multiple_requests(requests, result_container, start_time, timeout_lim
179 179
             remaining_time = max(0.0, timeout_limit - (time() - start_time))
180 180
             th.join(remaining_time)
181 181
             if th.isAlive():
182
+                result_container.add_unresponsive_engine((th._engine_name, gettext('timeout')))
182 183
                 logger.warning('engine timeout: {0}'.format(th._engine_name))
183 184
 
184 185