mirror of https://github.com/ctz/rustls
tlsserver: try to send alerts on error
This commit is contained in:
parent
abaa366ad3
commit
9f41f46324
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue