Skip to content

Commit

Permalink
fix(tls): do not shutdown server on broken connections (#1948)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexis Bauvin <abauvin@scaleway.com>
  • Loading branch information
Tuetuopay and Alexis Bauvin committed Sep 20, 2024
1 parent ec41014 commit 474390b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tonic/src/transport/server/incoming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ fn handle_accept_error(e: impl Into<crate::Error>) -> ControlFlow<crate::Error>
if matches!(
e.kind(),
io::ErrorKind::ConnectionAborted
| io::ErrorKind::ConnectionReset
| io::ErrorKind::BrokenPipe
| io::ErrorKind::Interrupted
| io::ErrorKind::InvalidData // Raised if TLS handshake failed
| io::ErrorKind::UnexpectedEof // Raised if TLS handshake failed
Expand Down

0 comments on commit 474390b

Please sign in to comment.