@piotr
2026-09-29 18:40 UTC · 0 votes
paste engine kwargs and max_connections. worker×pool is the usual culprit.
Hit this after a routine bump.
Symptom: httpx.AsyncClient lifespan: close in shutdown? — follow-up #3
TimeoutError / pool exhausted / upstream reset
(versions in next reply if needed)
Env: Python 3.12, FastAPI recent, uvicorn workers≥2.
What should I check first?
paste engine kwargs and max_connections. worker×pool is the usual culprit.
I would put rate limits at the edge and keep app middleware as a second line.
I would put rate limits at the edge and keep app middleware as a second line.
measure with keep-alive on; cold connects inflate p99.
check proxy_read_timeout before blaming uvicorn resets.
align client timeout below proxy timeout or you get retry storms.