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

feat: Add parameter --min-sigterm-delay #2266

Merged
merged 1 commit into from
Jul 11, 2024
Merged

feat: Add parameter --min-sigterm-delay #2266

merged 1 commit into from
Jul 11, 2024

Conversation

hessjcg
Copy link
Collaborator

@hessjcg hessjcg commented Jul 10, 2024

This makes the proxy continue to accept new connections for a period of time
after receiving the TERM signal.

Fixes #1640

…inimum number off seconds before shutting down the proxy.
@hessjcg hessjcg requested a review from a team as a code owner July 10, 2024 17:28
case errors.Is(err, errQuitQuitQuit):
cmd.logger.Infof("/quitquitquit received request. Shutting down...")
time.Sleep(cmd.conf.WaitBeforeClose)
Copy link
Member

Choose a reason for hiding this comment

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

Shall we just add one of these right above the return statement below?

Copy link
Collaborator Author

@hessjcg hessjcg Jul 11, 2024

Choose a reason for hiding this comment

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

No, because we don't want to delay in the case of the default error. We only want to delay if the exit process was somehow initiated by the user.

@hessjcg hessjcg requested a review from enocom July 11, 2024 17:04
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.

Support forcing the proxy to accept new connections while max-sigterm-delay is in effect
3 participants