Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tls): do not shutdown the server on connection timeout errors #1972

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

krispraws
Copy link
Contributor

@krispraws krispraws commented Oct 4, 2024

Motivation

Related to #1948 and #1938
We have a tls server in production and we started seeing instances of the server exiting due to errors in the accept loop after upgrading to version 0.12.2.
We pinned our tonic version to commit sha 474390b and that fixed most of the issues. However we still see shutdowns on connection timeout errors.

2024-10-04T14:01:51.137261894+00:00 - DEBUG tonic::transport::server::incoming - accept loop error error=Connection timed out (os error 110)

Solution

Add io::ErrorKind::TimedOut to the list of errors to ignore

@krispraws
Copy link
Contributor Author

@djc - Do I need to do anything else to get this merged?

@djc
Copy link
Collaborator

djc commented Oct 7, 2024

Nope! @tottoto any opinions?

@djc djc added this pull request to the merge queue Oct 8, 2024
Merged via the queue into hyperium:master with commit c5f2cc1 Oct 8, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants