We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ae3c19 commit ccabc93Copy full SHA for ccabc93
src/client/mod.rs
@@ -88,7 +88,7 @@ mod task;
88
#[derive(Debug)]
89
pub enum GenericTcpStream {
90
Tcp(#[pin] TcpStream),
91
- SecureTcp(#[pin] TlsStream<TcpStream>),
+ SecureTcp(#[pin] Box<TlsStream<TcpStream>>),
92
}
93
94
impl AsyncRead for GenericTcpStream {
src/client/options.rs
@@ -132,7 +132,7 @@ impl ClientOptions {
132
let domain = ServerName::try_from(host.clone()).unwrap();
133
let connector = TlsConnector::from(Arc::new(config));
134
let conn = connector.connect(domain, stream).await?;
135
- Ok(GenericTcpStream::SecureTcp(conn))
+ Ok(GenericTcpStream::SecureTcp(Box::new(conn)))
136
137
match &self.tls {
138
TlsConfiguration::Trusted {
0 commit comments