Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make TlsStream cloneable #18

Open
NyxCode opened this issue Feb 15, 2020 · 1 comment
Open

Make TlsStream cloneable #18

NyxCode opened this issue Feb 15, 2020 · 1 comment

Comments

@NyxCode
Copy link

NyxCode commented Feb 15, 2020

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?

@abhishekc-sharma
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants