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

feat: add GracefulShutdown helper #127

Merged
merged 1 commit into from
May 28, 2024
Merged

feat: add GracefulShutdown helper #127

merged 1 commit into from
May 28, 2024

Conversation

seanmonstar
Copy link
Member

This adds a new hyper_util::server::graceful::GracefulShutdown helper, which can be used to watch connections, and then trigger a graceful shutdown and await all connections finishing.

Continues off of #108. cc @GlenDC

Closes hyperium/hyper#2862

src/server/graceful.rs Outdated Show resolved Hide resolved
@GlenDC
Copy link

GlenDC commented May 27, 2024

Thx. I currently have no time. So I’ll review instead :3

Copy link

@GlenDC GlenDC left a comment

Choose a reason for hiding this comment

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

I have a feeling you're not ready yet. But this does look a whole lot simpler indeed!
Not surprising of course, as there is a pay off. Fully respect the approach though, and pays of it self indeed. Thx for picking up the work, and all your hard work in general!!!

@seanmonstar seanmonstar merged commit bb5c148 into master May 28, 2024
16 checks passed
@seanmonstar seanmonstar deleted the graceful branch May 28, 2024 12:45
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.

Make a GracefulShutdown helper in hyper-util
2 participants