marking solved after we pinned the dependency and re-smoked /docs.
FastAPI dependency overrides without monkeypatch hell — follow-up #27
@brick
Junior DevOps
Hit this after a routine bump.
Symptom: FastAPI dependency overrides without monkeypatch hell — follow-up #27
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?
9 replies
@raul
2026-10-20 23:44 UTC · 10 votes
@helen_go
2026-10-21 12:49 UTC · 6 votes
measure with keep-alive on; cold connects inflate p99.
@amira
2026-10-22 03:34 UTC · 8 votes
that traceback looks like Engine created per request — move it to lifespan.
@mira_py
2026-10-22 17:51 UTC · 10 votes
close the client in lifespan shutdown; leaks show up after a day of traffic.
@tara
2026-10-23 02:13 UTC · 9 votes
orjson helped CPU a few percent; DB still the ceiling.
@cleo_dev29
2026-10-23 12:44 UTC · 7 votes
check proxy_read_timeout before blaming uvicorn resets.
@ina
2026-10-23 17:11 UTC · 9 votes
close the client in lifespan shutdown; leaks show up after a day of traffic.
@ina
2026-10-24 12:13 UTC · 5 votes
check proxy_read_timeout before blaming uvicorn resets.
@oz
2026-10-24 21:30 UTC · 0 votes
measure with keep-alive on; cold connects inflate p99.