mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
apply request timeout also while waiting for a connection from pool
This commit is contained in:
@@ -175,12 +175,15 @@ NOMINATIM_SERVE_LEGACY_URLS=yes
|
||||
NOMINATIM_API_POOL_SIZE=5
|
||||
|
||||
# Timeout is seconds after which a single query to the database is cancelled.
|
||||
# The user receives a 503 response, when a query times out.
|
||||
# The caller receives a TimeoutError (or HTTP 503), when a query times out.
|
||||
# When empty, then timeouts are disabled.
|
||||
NOMINATIM_QUERY_TIMEOUT=10
|
||||
|
||||
# Maximum time a single request is allowed to take. When the timeout is
|
||||
# exceeded, the available results are returned.
|
||||
# Maximum time a single request is allowed to take. If the timeout is exceeded
|
||||
# before the request is able to obtain a database connection from the
|
||||
# connection pool, a TimeoutError (or HTTP 503) is thrown. If the timeout
|
||||
# is exceeded while the search is ongoing, all results already found will
|
||||
# be returned.
|
||||
# When empty, then timeouts are disabled.
|
||||
NOMINATIM_REQUEST_TIMEOUT=60
|
||||
|
||||
|
||||
Reference in New Issue
Block a user