tlsserver: try to send alerts on error

This commit is contained in:
Joseph Birr-Pixton 2019-08-10 09:26:09 +01:00
parent abaa366ad3
commit 9f41f46324
1 changed files with 4 additions and 0 deletions

View File

@ -222,6 +222,10 @@ impl Connection {
let processed = self.tls_session.process_new_packets();
if processed.is_err() {
error!("cannot process packet: {:?}", processed);
// last gasp write to send any alerts
self.do_tls_write_and_handle_error();
self.closing = true;
return;
}