Skip to content

add support for gzip + chunked#26

Open
tatchi wants to merge 2 commits into
ahrefs:masterfrom
tatchi:chunked-compression
Open

add support for gzip + chunked#26
tatchi wants to merge 2 commits into
ahrefs:masterfrom
tatchi:chunked-compression

Conversation

@tatchi

@tatchi tatchi commented May 6, 2024

Copy link
Copy Markdown
Contributor

This is based on #25, (only the second commit is relevant) and should add support for gzip compression with chunked (I haven't tested it)

@tatchi tatchi requested review from Khady, mfp and rr0gi May 6, 2024 09:48
@rr0gi

rr0gi commented May 10, 2024

Copy link
Copy Markdown
Contributor

if you insist on somehow fixing this :) then instead of yield hack should have gzip outputting into lwt io channel directly, not separate buffer

Comment thread httpev.ml
| "" -> Lwt.return_unit
| s ->
let%lwt s = match c.req with
| Ready { encoding=Gzip; _ } -> Gzip_io.string_lwt s

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem right.
If I'm reading correctly you're Gzip-encoding each chunk. But that's not how it's meant to happen.
Compression precedes the chunking.

@c-cube c-cube force-pushed the master branch 2 times, most recently from 98525d9 to ae85af0 Compare June 22, 2026 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants