Skip to content

implement graceful shutdown on Drop#103

Merged
davepacheco merged 4 commits intomainfrom
server-close
Apr 13, 2021
Merged

implement graceful shutdown on Drop#103
davepacheco merged 4 commits intomainfrom
server-close

Conversation

@davepacheco
Copy link
Copy Markdown
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.

@davepacheco davepacheco requested a review from smklein April 13, 2021 17:56
Copy link
Copy Markdown
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