sfackler / rust-native-tls

Apache License 2.0
470 stars 195 forks source link

Add try_clone() for TlsStream (same as the TcpStream #206

Closed WalterYongtaoWang closed 3 years ago

WalterYongtaoWang commented 3 years ago

TcpStream has this try_cone() method, so you can read/write the stream in different threads: https://doc.rust-lang.org/std/net/struct.TcpStream.html#method.try_clone

Please add it to TlsStream so we can do the same.

sfackler commented 3 years ago

The internal TLS implementations do not support that operation.