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

clair: orderly shutdown #2015

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

clair: orderly shutdown #2015

wants to merge 4 commits into from

Conversation

hdonnay
Copy link
Member

@hdonnay hdonnay commented Mar 22, 2024

Closes #1946

@hdonnay hdonnay requested a review from a team as a code owner March 22, 2024 15:07
@hdonnay hdonnay requested review from crozzy and removed request for a team March 22, 2024 15:07
@hdonnay
Copy link
Member Author

hdonnay commented Mar 22, 2024

Needs CI updates; working on those. Done

This changes the incorrect-but-at-least-stops implementation with a
little tree of goroutines.

The full fix requires `context.WithoutCancel`, which we can't quite use
yet.

Closes: quay#1946
Signed-off-by: Hank Donnay <hdonnay@redhat.com>
This means that the request contexts should now only be able to be
cancelled via the `(http.Server).Shutdown`/`(http.Server).Close`
methods.

Signed-off-by: Hank Donnay <hdonnay@redhat.com>
Signed-off-by: Hank Donnay <hdonnay@redhat.com>
Signed-off-by: Hank Donnay <hdonnay@redhat.com>
@hdonnay
Copy link
Member Author

hdonnay commented Apr 17, 2024

Not sure if there's a good way to cook up a test for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Graceful shutdown ... isn't
1 participant