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 tls-graceful-shutdown example #2208

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

PGIII
Copy link
Contributor

@PGIII PGIII commented Sep 6, 2023

Motivation

I couldn't find an example of graceful shutdown when using axum_server for TLS and hyper for redirect.

Solution

This example shows how to use the axum_server handle to trigger a graceful shutdown.
While still sharing the future with the hyper server to use the built-in graceful_shutdown feature of hyper.
This is based off the existing tls-rustls example and existing graceful-shutdown example

@davidpdrsn davidpdrsn enabled auto-merge (squash) September 11, 2023 11:55
Copy link
Member

@davidpdrsn davidpdrsn left a comment

Choose a reason for hiding this comment

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

Thanks!

@davidpdrsn davidpdrsn merged commit 998ef8d into tokio-rs:main Sep 11, 2023
18 checks passed
@PGIII PGIII deleted the tls-shutdown-example branch September 16, 2023 01:05
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