core: preserve Responses WebSockets with system proxy

This commit is contained in:
Michael Bolin
2026-07-07 10:16:25 -07:00
parent 6afcf26d5d
commit 7409481cf2
10 changed files with 343 additions and 14 deletions
+2
View File
@@ -2371,9 +2371,11 @@ async fn websocket_reachability_check(
HeaderValue::from_static(RESPONSES_WEBSOCKETS_V2_BETA_HEADER_VALUE),
);
let client = ResponsesWebsocketClient::new(api_provider, api_auth);
let http_client_factory = config.http_client_factory();
match tokio::time::timeout(
provider.websocket_connect_timeout(),
client.probe_handshake(
&http_client_factory,
extra_headers,
default_headers(),
WEBSOCKET_IMMEDIATE_CLOSE_GRACE,