Skip to content

Commit

Permalink
fix(tls): do not shutdown server on unexpected Eof (#1938)
Browse files Browse the repository at this point in the history
Signed-off-by: Patrik Cyvoct <patrik@ptrk.io>
  • Loading branch information
Sh4d1 authored Sep 16, 2024
1 parent 626b094 commit 43c926f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tonic/src/transport/server/incoming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ fn handle_accept_error(e: impl Into<crate::Error>) -> ControlFlow<crate::Error>
io::ErrorKind::ConnectionAborted
| io::ErrorKind::Interrupted
| io::ErrorKind::InvalidData // Raised if TLS handshake failed
| io::ErrorKind::UnexpectedEof // Raised if TLS handshake failed
| io::ErrorKind::WouldBlock
) {
return ControlFlow::Continue(());
Expand Down

0 comments on commit 43c926f

Please sign in to comment.