Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Backport: fix response flushing on streaming k8s requests #5010

Merged
merged 1 commit into from
Dec 1, 2020

Conversation

awly
Copy link
Contributor

@awly awly commented Dec 1, 2020

Backport of #5009 into 5.0

Streaming requests, like kubectl logs -f will slowly write response
data over time. The http.ResponseWriter wrapper we added for capturing
the response code didn't propagate http.Flusher interface and
prevented the forwarder library from periodically flushing response
contents.

This caused kubectl logs -f results to be delayed, delivered in
batches as some internal buffer filled up.

Streaming requests, like `kubectl logs -f` will slowly write response
data over time. The `http.ResponseWriter` wrapper we added for capturing
the response code didn't propagate `http.Flusher` interface and
prevented the forwarder library from periodically flushing response
contents.

This caused `kubectl logs -f` results to be delayed, delivered in
batches as some internal buffer filled up.
@awly awly merged commit 2a6a2d2 into branch/5.0 Dec 1, 2020
@awly awly deleted the andrew/5.0/kube-response-flusher branch December 1, 2020 17:57
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants