mirror of
https://github.com/openai/codex.git
synced 2026-11-24 23:22:05 +00:00
Bound Noise handshakes by the exec server initialization timeout (#42623)
## What changed - Wait for the authenticated Noise handshake before sending the JSON-RPC `initialize` request. - Share the configured initialization timeout across the handshake and RPC, while preserving the configured duration in timeout diagnostics. - Record the handshake and initialization RPC as child spans of the existing initialization span, and terminate transport tasks when handshake readiness fails. ## Testing - Cover stalled handshake timeouts and cleanup of the underlying WebSocket. - Cover timeout reporting after the handshake has consumed part of the budget. GitOrigin-RevId: c3eb5f7cfedd8d155fde5b7614fc2eb399ce337c
This commit is contained in:
1 parent
1f7b99922a
commit
781c183c3b
9 files changed
+433
-66
No files matched your search
@@ -9,7 +9,7 @@ use tokio_tungstenite::tungstenite::protocol::WebSocketConfig;
|
||||
use crate::ExecServerError;
|
||||
|
||||
pub(crate) use harness::NoiseHarnessConnectionArgs;
|
||||
pub(crate) use harness::noise_harness_connection_from_websocket;
|
||||
pub(crate) use harness::noise_harness_connection_from_websocket_with_readiness;
|
||||
|
||||
pub(crate) const NOISE_RELAY_RESET_REASON: &str = "noise_relay_protocol_error";
|
||||
|
||||
|
||||
Reference in new issue
Block a user