-
Notifications
You must be signed in to change notification settings - Fork 38.8k
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
apiserver: sync with http server shutdown to flush existing connections #72970
apiserver: sync with http server shutdown to flush existing connections #72970
Conversation
180d828
to
caca404
Compare
caca404
to
8ea8924
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt, sttts The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
/assign @logicalhan |
8ea8924
to
5b47f99
Compare
New changes are detected. LGTM label has been removed. |
We did not wait for the http server to shut down completely. In the http/2 case this seems to lead to early closing of connections, without sending all bytes to the client. Credits to @xingxingxia for finding that.
Here is the go doc of the http server shutdown method: