core: preserve Responses WebSockets with system proxy

This commit is contained in:
Michael Bolin
2026-07-08 13:03:27 -07:00
parent 2780bd588f
commit 48b40c22a9
6 changed files with 24 additions and 24 deletions
+2
View File
@@ -2383,9 +2383,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,