mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-12-05 16:07:33 +00:00
WebSocket turns closed the connection with 1013 as soon as the user was at its concurrency limit, after the client had already uploaded the full request. Clients such as Codex then retry and eventually switch the session to HTTP, which resends the whole context on every turn. Wait in the same bounded per-user queue as HTTP requests instead. The wait is 60 seconds, longer than the HTTP wait because a rejected WebSocket turn is more expensive. Timeouts, a full queue and a closed connection still end with 1013.