Explorar el Código

add timeout errors in search_multiple_requests

Noémi Ványi hace 7 años
padre
commit
80331cc8e6
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1
    0
      searx/search.py

+ 1
- 0
searx/search.py Ver fichero

@@ -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