From 44380ba5be8aa6d9daf57769d78ec131604c6813 Mon Sep 17 00:00:00 2001 From: Jake Hillion Date: Tue, 24 May 2022 12:28:59 +0100 Subject: [PATCH] implement tls clean close --- examples/tls/tls.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/tls/tls.rs b/examples/tls/tls.rs index 39cae5c..962c435 100644 --- a/examples/tls/tls.rs +++ b/examples/tls/tls.rs @@ -56,6 +56,9 @@ pub(crate) fn handler( } } + tls_conn.send_close_notify(); + tls_conn.write_tls(&mut stream).unwrap(); + exitcode::OK }