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

Fix response flushing on streaming k8s requests #5009

Merged
merged 1 commit into from
Dec 1, 2020

Conversation

awly
Copy link
Contributor

@awly awly commented Dec 1, 2020

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.

Updates #5003

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 c4583b7 into master Dec 1, 2020
@awly awly deleted the andrew/kube-response-flusher branch December 1, 2020 01:41
awly pushed a commit that referenced this pull request Dec 1, 2020
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 pushed a commit that referenced this pull request Dec 1, 2020
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 mentioned this pull request Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants