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(ext/http): flush gzip streaming response #23991

Merged
Prev Previous commit
Next Next commit
Cleanup
  • Loading branch information
littledivy committed May 27, 2024
commit 73c88bf2372e1dda71c4cf58eb0fdc624a92854a
3 changes: 0 additions & 3 deletions ext/http/response_body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,6 @@ impl PollFrame for tokio::sync::mpsc::Receiver<BufView> {
enum GZipState {
Header,
Streaming,
// TODO: add FlushingIdle or PendingFlush for in the middle.
Flushing,
Trailer,
EndOfStream,
Expand Down Expand Up @@ -373,7 +372,6 @@ impl PollFrame for GZipResponseStream {
if let Some(partial) = this.partial.take() {
ResponseStreamResult::NonEmptyBuf(partial)
} else {
// TODO: If we get "flush" here we should flush the gzip stream
ready!(Pin::new(&mut this.underlying).poll_frame(cx))
}
}
Expand Down Expand Up @@ -409,7 +407,6 @@ impl PollFrame for GZipResponseStream {
input.advance_cursor(len_in);
this.partial = Some(input);
}

res
}
};
Expand Down
Loading