mirror of https://github.com/searxng/searxng.git
add timeout errors in search_multiple_requests
This commit is contained in:
parent
2242000bd4
commit
80331cc8e6
|
@ -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))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue