discussion 2026-10-01 1895 views 37 votes

CORS preflight storm from SPA — fix? — follow-up #36

@sana
Platform Engineer

Hit this after a routine bump.

Symptom: CORS preflight storm from SPA — fix? — follow-up #36

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

@brick
2026-10-01 14:35 UTC · 9 votes

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

@nyx_api
2026-10-02 00:05 UTC · 8 votes

minimal repro with ASGITransport would help more than screenshots.

@oz
2026-10-02 19:09 UTC · 1 votes

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

@kai_sre
2026-10-03 11:40 UTC · 4 votes

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

@seth
2026-10-03 13:07 UTC · 6 votes

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

@sana
2026-10-04 04:18 UTC · 8 votes

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

@sana
2026-10-04 16:18 UTC · 5 votes

orjson helped CPU a few percent; DB still the ceiling.

Reply

Login or register to reply.