diff --git a/tokio-rustls/src/client.rs b/tokio-rustls/src/client.rs index 2bf136d..444659e 100644 --- a/tokio-rustls/src/client.rs +++ b/tokio-rustls/src/client.rs @@ -78,10 +78,6 @@ where Poll::Ready(Ok(n)) => Poll::Ready(Ok(n)), Poll::Ready(Err(ref e)) if e.kind() == io::ErrorKind::ConnectionAborted => { this.state.shutdown_read(); - if this.state.writeable() { - stream.session.send_close_notify(); - this.state.shutdown_write(); - } Poll::Ready(Ok(0)) } output => output, diff --git a/tokio-rustls/src/server.rs b/tokio-rustls/src/server.rs index b5f8375..d9cc62c 100644 --- a/tokio-rustls/src/server.rs +++ b/tokio-rustls/src/server.rs @@ -79,10 +79,6 @@ where Poll::Ready(Ok(n)) => Poll::Ready(Ok(n)), Poll::Ready(Err(ref err)) if err.kind() == io::ErrorKind::ConnectionAborted => { this.state.shutdown_read(); - if this.state.writeable() { - stream.session.send_close_notify(); - this.state.shutdown_write(); - } Poll::Ready(Ok(0)) } Poll::Ready(Err(e)) => Poll::Ready(Err(e)),