mirror of
https://github.com/openai/codex.git
synced 2026-11-24 23:22:05 +00:00
Decouple Noise relay streams from JSON-RPC processing (#39235)
## What changed - Add a `NoiseStreamHandler` abstraction that owns payload encoding, decoding, and connection processing while the virtual stream handles framing, encryption, and multiplexing. - Reassemble authenticated payloads as opaque bytes, with the existing JSON-RPC processor supplied as a handler implementation. - Have the physical relay send a reset after the current stream instance closes, including when its processor exits before the writer task. ## Testing - Verify local JSON-RPC decoding creates the queued request span before queue admission. - Verify a processor exit resets the corresponding Noise harness stream. GitOrigin-RevId: 270befcc8bfbf27e46c84d6a2c6e349cb98ea3f8
This commit is contained in:
1 parent
9b9b614b02
commit
3df5087f75
10 files changed
+582
-302
No files matched your search
@@ -2,6 +2,7 @@ pub(crate) mod executor_stream;
|
||||
mod harness;
|
||||
mod message_framing;
|
||||
mod ordered_ciphertext;
|
||||
pub(crate) mod stream_handler;
|
||||
|
||||
use tokio_tungstenite::tungstenite::protocol::WebSocketConfig;
|
||||
|
||||
|
||||
Reference in new issue
Block a user