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

implement graceful shutdown on Drop #103

Merged
merged 4 commits into from
Apr 13, 2021
Merged

implement graceful shutdown on Drop #103

merged 4 commits into from
Apr 13, 2021

Conversation

davepacheco
Copy link
Collaborator

Previously if the Dropshot server was dropped prior to closing it, it would panic. This was intended to guide people to using close() for graceful shutdown. I've now run into this a lot more in failing test suites, where it's way more disruptive than it is helpful because the program panics while panicking, and you're left with very little debug information. So I'm proposing that we do attempt a graceful shutdown in Drop. I don't consider this a breaking change because previously, a program that ran into this behavior would panic anyway.

Copy link
Contributor

@smklein smklein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, though I think you might need to hit the tests with a TRYBUILD=overwrite hammer

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.

2 participants