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

Changing the shutdown logic for the rest server. #4173

Merged
merged 2 commits into from
Nov 22, 2023

Conversation

fulmicoton
Copy link
Contributor

Instead of relying on the hyper graceful shutdown, which does not shutdown in the presence of existing http connections.

Closes #4169

@fulmicoton fulmicoton requested a review from fmassot November 21, 2023 06:36
.serve(Shared::new(service))
.with_graceful_shutdown(shutdown_signal);

let serve_fut = async move {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm okay with this. Note that dropping the server will not prevent current connections from working (ref)
I would either add a comment there or open a low-priority issue on the REST server graceful shutdown.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah good point. I am not sure why but it did fix the test terminating after the rest clients issue.

Instead of relying on the hyper graceful shutdown, which does
not shutdown in the presence of existing http connections.

Closes #4169
@fulmicoton fulmicoton force-pushed the issue/4169-force-shutdown branch from f5714b4 to 52b06ea Compare November 22, 2023 09:41
@fulmicoton fulmicoton merged commit fa2efb2 into main Nov 22, 2023
1 check passed
@fulmicoton fulmicoton deleted the issue/4169-force-shutdown branch November 22, 2023 09:41
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.

HTTP Ingest connection can prevent shutdown
2 participants