Files
codex/codex-rs
alishobeiri-oai 8b2a4a40a9 Limit per-stream buffering in the Noise relay (#64540)
## Why

When the shared WebSocket writer stalls, a burst from one stream can fill
the outgoing queue. If a handshake reply arrives while the queue is full,
the relay can disconnect and interrupt existing streams.

## What changed

Allow each stream to queue one data record while the writer flushes the
current frame. Keep data and control frames in the same FIFO to preserve
their order. If the queue is full when a handshake reply is ready, decline
the new stream and keep the connection open so existing streams can drain.

## Testing

Add a regression test that stalls the writer during a burst and verifies
that a second stream's handshake reply arrives after at most two data
records and that the burst drains in order.

GitOrigin-RevId: f0e4225bccb63d021c09718e5c43df3f4c4a6745
2026-11-29 03:42:13 +00:00
..
…
…
…