Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Box the WebSocket dial future (#39726)

jif9bf673718a46
diff --git a/codex-rs/websocket-client/src/lib.rs b/codex-rs/websocket-client/src/lib.rs
index 932cc6498a..cd6bdc2288 100644
--- a/codex-rs/websocket-client/src/lib.rs
+++ b/codex-rs/websocket-client/src/lib.rs
@@ -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))
}