async-tls icon indicating copy to clipboard operation
async-tls copied to clipboard

Make TlsStream cloneable

Open NyxCode opened this issue 5 years ago • 2 comments

async_std::net::TcpStream implements Clone, which makes it possible to read and write to a socket at the same time. Official async-std example This library does not implement Clone for TlsStream, neither does it implement AsyncRead or AsyncWrite for &TlsStream. How would I rewrite the example above to use TLS when TlsStream is not clonable?

NyxCode avatar Feb 15 '20 02:02 NyxCode

@yoshuawuyts Correct me if I'm wrong but one of the changes suggested by @NyxCode above would need to be implemented to apply either of the solutions suggested in https://github.com/http-rs/async-h1/issues/74

abhishekc-sharma avatar Mar 26 '20 13:03 abhishekc-sharma