diff --git a/Cargo.toml b/Cargo.toml index e491e52..a5e21c0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "vented" description = "Event driven encrypted tcp communicaton" -version = "0.10.2" +version = "0.10.3" authors = ["trivernis "] edition = "2018" readme = "README.md" diff --git a/src/stream/cryptostream.rs b/src/stream/cryptostream.rs index 2fab4b6..2ec4332 100644 --- a/src/stream/cryptostream.rs +++ b/src/stream/cryptostream.rs @@ -32,7 +32,6 @@ impl CryptoStream { public_key: &PublicKey, secret_key: &SecretKey, ) -> VentedResult { - inner.set_nonblocking(false)?; let send_stream = Arc::new(Mutex::new(inner.try_clone()?)); let recv_stream = Arc::new(Mutex::new(inner)); let send_box = EncryptionBox::new(ChaChaBox::new(public_key, secret_key)); @@ -103,7 +102,6 @@ impl CryptoStream { /// Closes both streams pub fn shutdown(&self) -> VentedResult<()> { self.send_stream.lock().shutdown(Shutdown::Both)?; - self.recv_stream.lock().shutdown(Shutdown::Both)?; Ok(()) }