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

[8.x] Apply shutdown timeout to http server to limit reload delay (backport #14339) #14362

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Oct 15, 2024

Motivation/summary

httpServer.stop may block indefinitely, potentially due to misbehaving connections.

Apply shutdown timeout to http server so that in a hot reload, the old and new server overlapping time is bounded.

Checklist

For functional changes, consider:

  • Is it observable through the addition of either logging or metrics?
  • Is its use being published in telemetry to enable product improvement?
  • Have system tests been added to avoid regression?

How to test these changes

May need to change the code to hang the http server to observe the shutdown timeout. Alternatively there may be a way to mock a misbehaving http client without code change.

Related issues

Part of #14337


This is an automatic backport of pull request #14339 done by [Mergify](https://mergify.com).

httpServer.stop may block indefinitely, potentially due to misbehaving connections.

Apply shutdown timeout to http server so that in a hot reload, the old and new server overlapping time is bounded.

(cherry picked from commit 24329c8)
@mergify mergify bot added the backport label Oct 15, 2024
@mergify mergify bot requested a review from a team as a code owner October 15, 2024 14:04
@mergify mergify bot merged commit f7b12c1 into 8.x Oct 15, 2024
17 checks passed
@mergify mergify bot deleted the mergify/bp/8.x/pr-14339 branch October 15, 2024 14:32
@kruskall kruskall mentioned this pull request Oct 21, 2024
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants