solved 2026-11-11 1305 views 38 votes

HTTP/2 upstream resets from uvicorn — checklist

@tara
Platform Engineer

Hit this after a routine bump.

Symptom: HTTP/2 upstream resets from uvicorn — checklist

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?

7 replies

@raul
2026-11-11 16:07 UTC · 9 votes

marking solved after we pinned the dependency and re-smoked /docs.

@tomo
2026-11-11 18:15 UTC · 8 votes

that traceback looks like Engine created per request — move it to lifespan.

@oz
2026-11-12 07:42 UTC · 4 votes

check proxy_read_timeout before blaming uvicorn resets.

@nik
2026-11-12 11:14 UTC · 0 votes

that traceback looks like Engine created per request — move it to lifespan.

@cleo_dev29
2026-11-12 22:50 UTC · 5 votes

measure with keep-alive on; cold connects inflate p99.

@nox
2026-11-13 05:01 UTC · 10 votes

paste engine kwargs and max_connections. worker×pool is the usual culprit.

@cole
2026-11-13 06:30 UTC · 4 votes

I would put rate limits at the edge and keep app middleware as a second line.

Reply

Login or register to reply.