Skip to content

Commit

Permalink
fix(tls): do not shutdown the server on connection timeout errors
Browse files Browse the repository at this point in the history
  • Loading branch information
krispraws committed Oct 4, 2024
1 parent 9b74abf commit 9727972
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 @@ -100,6 +100,7 @@ fn handle_accept_error(e: impl Into<crate::Error>) -> ControlFlow<crate::Error>
| io::ErrorKind::InvalidData // Raised if TLS handshake failed
| io::ErrorKind::UnexpectedEof // Raised if TLS handshake failed
| io::ErrorKind::WouldBlock
| io::ErrorKind::TimedOut
) {
return ControlFlow::Continue(());
}
Expand Down

0 comments on commit 9727972

Please sign in to comment.