config: cap http_client timeout and max_duration
Per-request bounds so a single slow/hung provider can't stall the whole request indefinitely once fetching happens concurrently.
This commit is contained in:
@@ -7,3 +7,7 @@ framework:
|
|||||||
cache:
|
cache:
|
||||||
app: cache.adapter.filesystem
|
app: cache.adapter.filesystem
|
||||||
default_redis_provider: 'redis://localhost'
|
default_redis_provider: 'redis://localhost'
|
||||||
|
http_client:
|
||||||
|
default_options:
|
||||||
|
timeout: 10 # connect + wait-for-first-byte cap per request
|
||||||
|
max_duration: 15 # hard cap on total request duration
|
||||||
|
|||||||
Reference in New Issue
Block a user