async-rs / async-tls

A TLS implementation over AsyncRead and AsyncWrite
https://async.rs
Apache License 2.0
167 stars 47 forks source link

Hi, When will clone be supported? #32

Closed JackDiWu closed 4 years ago

JackDiWu commented 4 years ago

let tlsStream = connector.connect("www.google.com", tcpStream).await?

tlsStream.clone()??

burdges commented 4 years ago

rustls::ClientSession cannot be cloned, likely because doing so makes it insecure. You might use 0-RTT tricks to open a second stream cheaply, not sure.

skade commented 4 years ago

Dup of #18. Please use the discord chat or similar for inquiries.