discussion 2026-11-10 1681 views 29 votes

WebSocket auth cookie vs header

@omar
Tech Lead

Hit this after a routine bump.

Symptom: WebSocket auth cookie vs header

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?

4 replies

@omar
2026-11-10 18:12 UTC · 1 votes

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

@leo_cache
2026-11-10 21:11 UTC · 10 votes

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

@nyx_api
2026-11-11 09:17 UTC · 8 votes

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

@cole
2026-11-23 04:59 UTC · 2 votes

check your workers first; each one duplicates logging handlers.

Reply

Login or register to reply.