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

Close connection before exiting #36

Merged
merged 1 commit into from
Feb 7, 2020
Merged

Conversation

ahmetb
Copy link
Collaborator

@ahmetb ahmetb commented Feb 5, 2020

os.Exit() calls in main() are causing defer statements to be ignored.
This surfaced in several bug reports (such as Java gRPC servers) as health
RPCs causing stack traces or "broken pipe" errors.

Fixes #34.
Fixes #33.

os.Exit() calls in main() are causing `defer` statements to be ignored.
This surfaced in several bug reports (such as Java gRPC servers) as health
RPCs causing stack traces or "broken pipe" errors.

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
@ahmetb ahmetb merged commit 9859bc8 into grpc-ecosystem:master Feb 7, 2020
@ahmetb ahmetb deleted the conn-close branch February 7, 2020 03:53
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.

grpc-health-probe shuts down the gRPC connection non-gracefully Health probe causing "broken pipe"
1 participant