You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
@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 http-rs/async-h1#74
async_std::net::TcpStream
implementsClone
, 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
forTlsStream
, neither does it implementAsyncRead
orAsyncWrite
for&TlsStream
.How would I rewrite the example above to use TLS when
TlsStream
is not clonable?The text was updated successfully, but these errors were encountered: