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

Add graceful_shutdown example. #3303

Merged
merged 2 commits into from
Sep 5, 2023
Merged

Conversation

aaronriekenberg
Copy link
Contributor

@aaronriekenberg aaronriekenberg commented Sep 3, 2023

I wanted to have graceful shutdown after a timeout in my server application. There is not an existing example that does exactly this.

This is mostly the existing hello.rs example with graceful shutdown added.

Thanks!

Copy link
Member

@seanmonstar seanmonstar left a comment

Choose a reason for hiding this comment

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

Wow, this is exceptionally well explained, thank you so much!

It'd probably be great if the graceful shutdown guide on https://hyper.rs/guides pointed to this as a fuller example.

@seanmonstar seanmonstar merged commit 6a64a22 into hyperium:master Sep 5, 2023
23 of 34 checks passed
0xE282B0 pushed a commit to 0xE282B0/hyper that referenced this pull request Jan 12, 2024
0xE282B0 pushed a commit to 0xE282B0/hyper that referenced this pull request Jan 16, 2024
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