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

Graceful shutdown is not working in HTTPS mode #1865

Closed
AlexanderYastrebov opened this issue Sep 23, 2021 · 0 comments · Fixed by #1866
Closed

Graceful shutdown is not working in HTTPS mode #1865

AlexanderYastrebov opened this issue Sep 23, 2021 · 0 comments · Fixed by #1866
Assignees

Comments

@AlexanderYastrebov
Copy link
Member

Describe the bug

#988 implemented graceful shutdown but it is not working in HTTPS mode because of an early return:

return srv.ListenAndServeTLS(o.CertPathTLS, o.KeyPathTLS)

To Reproduce

  1. Run Skipper in HTTPS mode
$ bin/skipper -tls-cert=fixtures/test.crt -tls-key=fixtures/test.key -inline-routes '* -> status(204) -> <shunt>'
  1. Send SIGTERM
$ kill -SIGTERM $(pgrep skipper)
  1. Observe immediate shutdown

Expected behavior

Graceful shutdown like in HTTP mode, e.g. the logs:

Got shutdown signal, wait 45s for health check
AlexanderYastrebov added a commit that referenced this issue Sep 23, 2021
Fixes #1865

Signed-off-by: Alexander Yastrebov <[email protected]>
@AlexanderYastrebov AlexanderYastrebov self-assigned this Sep 23, 2021
AlexanderYastrebov added a commit that referenced this issue Sep 24, 2021
Fixes #1865

Signed-off-by: Alexander Yastrebov <[email protected]>
AlexanderYastrebov added a commit that referenced this issue Sep 24, 2021
Fixes #1865

Signed-off-by: Alexander Yastrebov <[email protected]>
AlexanderYastrebov added a commit that referenced this issue Sep 24, 2021
Fixes #1865

Signed-off-by: Alexander Yastrebov <[email protected]>
AlexanderYastrebov added a commit that referenced this issue Sep 24, 2021
Fixes #1865

Signed-off-by: Alexander Yastrebov <[email protected]>
AlexanderYastrebov added a commit that referenced this issue Sep 24, 2021
Fixes #1865

Signed-off-by: Alexander Yastrebov <[email protected]>
AlexanderYastrebov added a commit that referenced this issue Sep 24, 2021
Fixes #1865

Signed-off-by: Alexander Yastrebov <[email protected]>
AlexanderYastrebov added a commit that referenced this issue Sep 27, 2021
Fixes #1865

Signed-off-by: Alexander Yastrebov <[email protected]>
AlexanderYastrebov added a commit that referenced this issue Jul 15, 2023
* verify request is still ongoing after shutdown started
* verify shutdown completes after request is finished
* rename tests to have the ame prefix

Updates #988 #1865

Signed-off-by: Alexander Yastrebov <[email protected]>
AlexanderYastrebov added a commit that referenced this issue Jul 15, 2023
Make test request in parallel to ensure another request is refused
not only after shutdown started but also while shutdown is still in progress
(i.e. while test request is still in progress).

Verify shutdown completes after test request is finished.

Rename tests to have the same prefix.

Updates #988 #1865

Signed-off-by: Alexander Yastrebov <[email protected]>
AlexanderYastrebov added a commit that referenced this issue Jul 15, 2023
Make test request in parallel to ensure another request is refused
not only after shutdown started but also while shutdown is still in progress
(i.e. while test request is still in progress).

Verify shutdown completes after test request is finished.

Rename tests to have the same prefix.

Updates #988 #1865

Signed-off-by: Alexander Yastrebov <[email protected]>
AlexanderYastrebov added a commit that referenced this issue Jul 15, 2023
Make test request in parallel to ensure another request is refused
not only after shutdown started but also while shutdown is still in progress
(i.e. while test request is still in progress).

Verify shutdown completes after test request is finished.

Rename tests to have the same prefix.

Updates #988 #1865

Signed-off-by: Alexander Yastrebov <[email protected]>
AlexanderYastrebov added a commit that referenced this issue Jul 24, 2023
Make test request in parallel to ensure another request is refused
not only after shutdown started but also while shutdown is still in progress
(i.e. while test request is still in progress).

Verify shutdown completes after test request is finished.

Rename tests to have the same prefix.

Updates #988 #1865

Signed-off-by: Alexander Yastrebov <[email protected]>
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 a pull request may close this issue.

1 participant