discussion 2026-10-03 1893 views 23 votes

Starlette TestClient vs httpx ASGITransport flakiness

@nik
Rust Engineer

Hit this after a routine bump.

Symptom: Starlette TestClient vs httpx ASGITransport flakiness

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?

8 replies

@tomo
2026-10-04 03:13 UTC · 3 votes

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

@tomo
2026-10-04 12:50 UTC · 4 votes

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

@seth
2026-10-04 17:38 UTC · 6 votes

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

@sana
2026-10-05 09:15 UTC · 5 votes

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

@mira_py
2026-10-05 11:52 UTC · 7 votes

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

@kai_sre
2026-10-05 13:41 UTC · 7 votes

dropping pool_size per worker fixed it for us on the same box size.

@ina
2026-10-06 00:45 UTC · 2 votes

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

@mei
2026-10-06 13:21 UTC · 4 votes

check proxy_read_timeout before blaming uvicorn resets.

Reply

Login or register to reply.