Skip to content

feat: add GracefulShutdown helper - #127

Merged
seanmonstar merged 1 commit into
masterfrom
graceful
May 28, 2024
Merged

feat: add GracefulShutdown helper#127
seanmonstar merged 1 commit into
masterfrom
graceful

Conversation

@seanmonstar

Copy link
Copy Markdown
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

Closeshyperium/hyper#2862

Comment threadsrc/server/graceful.rs Outdated
@GlenDC

Copy link
Copy Markdown

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

@GlenDCGlenDC left a comment

Copy link
Copy Markdown

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!!!

@GlenDCGlenDC mentioned this pull request May 27, 2024
@seanmonstar
seanmonstarforce-pushed the graceful branch 2 times, most recently from 8ab37af to 131bf3eCompareMay 28, 2024 12:27
Sign up for freeto 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

@seanmonstar@GlenDC