Skip to content

Commit 474390b

Browse files
TuetuopayAlexis Bauvin
and
Alexis Bauvin
authored
fix(tls): do not shutdown server on broken connections (#1948)
Co-authored-by: Alexis Bauvin <[email protected]>
1 parent ec41014 commit 474390b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tonic/src/transport/server/incoming.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ fn handle_accept_error(e: impl Into<crate::Error>) -> ControlFlow<crate::Error>
9494
if matches!(
9595
e.kind(),
9696
io::ErrorKind::ConnectionAborted
97+
| io::ErrorKind::ConnectionReset
98+
| io::ErrorKind::BrokenPipe
9799
| io::ErrorKind::Interrupted
98100
| io::ErrorKind::InvalidData // Raised if TLS handshake failed
99101
| io::ErrorKind::UnexpectedEof // Raised if TLS handshake failed

0 commit comments

Comments
 (0)