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 quit request timeout #18

Merged
merged 2 commits into from
Oct 1, 2023
Merged

Add quit request timeout #18

merged 2 commits into from
Oct 1, 2023

Conversation

kvij
Copy link
Owner

@kvij kvij commented Oct 1, 2023

To ensure scuttle does not hang on sending quit requests (especially
relevant if also providing a generic quit endpoint) a timeout can be
provided. When a request fails or times out, it is logged (if enabled)
but scuttle will exit cleanly and timely.
By default, the QUIT_REQUEST_TIMEOUT is set to 5 seconds.

When multiple generic quit endpoints are provided they are now called in
parallel to ensure the timeout is guaranteeing a quick shutdown of
scuttle.

To ensure scuttle does not hang on sending quit requests (especially
relevant if also providing a generic quit endpoint) a timeout can be
provided. When a request fails or times out, it is logged (if enabled)
but scuttle will exit cleanly and timely.
By default, the QUIT_REQUEST_TIMEOUT is set to 5 seconds.

When multiple generic quit endpoints are provided they are now called in
parallel to ensure the timeout is guaranteeing a quick shutdown of
scuttle.
Also added a concurrency safe request counter to check if a request has
been made.
@kvij kvij merged commit 263551b into master Oct 1, 2023
2 checks passed
@kvij kvij deleted the generic_quit_timeout branch November 18, 2023 17:42
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.

None yet

1 participant