Skip to content

Conversation

@Sh4d1
Copy link
Contributor

@Sh4d1 Sh4d1 commented Sep 12, 2024

Motivation

When receiving non TLS packets (like TCP healtchecks), the server shuts down due to the UnexpectedEof returned by rustls.

Solution

Ignore this error

Signed-off-by: Patrik Cyvoct <patrik@ptrk.io>
@Sh4d1
Copy link
Contributor Author

Sh4d1 commented Sep 12, 2024

cc @djc if we can get that into 0.12.3

@djc
Copy link
Contributor

djc commented Sep 12, 2024

LGTM!

@Tuetuopay
Copy link
Contributor

Hi! Just chiming in to say thank you!

We're hitting this issue, which is even worse for us as we have long-lived gRPC streams, that prevent the tonic server from exiting, effectively DoS-ing our APIs if for whatever reason we get non-tls tcp connection.

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.

4 participants