apply request timeout also while waiting for a connection from pool

This commit is contained in:
Sarah Hoffmann
2025-09-05 14:47:14 +02:00
parent 563255202d
commit 3a50f749dd
6 changed files with 93 additions and 22 deletions

View File

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