Box the WebSocket dial future (#39726)

## What changed

Box `dialer::connect` before awaiting it in `WebSocketConnector::connect`,
erasing the dialer's concrete future type at the connector boundary.

GitOrigin-RevId: 617a2e4fd5bd61a408281973452e7b71b104bff2
This commit is contained in:
jif
2026-08-20 14:48:47 +00:00
committed by copyberry
parent 9894a14c81
commit 9bf673718a

View File

@@ -10,6 +10,7 @@ use std::task::Poll;
use codex_http_client::BuildCustomCaTransportError;
use codex_http_client::HttpClientFactory;
use codex_http_client::build_rustls_client_config_with_custom_ca;
use futures::FutureExt;
use futures::Sink;
use futures::Stream;
use rustls::ClientConfig;
@@ -105,6 +106,7 @@ impl WebSocketConnector {
proxy_route,
self.tcp_nodelay,
)
.boxed()
.await?;
Ok((WebSocketConnection { inner }, response))
}