@brick
2026-10-18 23:14 UTC · 8 votes
check proxy_read_timeout before blaming uvicorn resets.
Hit this after a routine bump.
Symptom: Connection pool math for 8 workers × Postgres 100 max
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?
check proxy_read_timeout before blaming uvicorn resets.
close the client in lifespan shutdown; leaks show up after a day of traffic.
minimal repro with ASGITransport would help more than screenshots.