Skip to content

Add explicit http server/client compression support#1660

Open
wendigo wants to merge 1 commit into
masterfrom
serafin/explicit-compression
Open

Add explicit http server/client compression support#1660
wendigo wants to merge 1 commit into
masterfrom
serafin/explicit-compression

Conversation

@wendigo
Copy link
Copy Markdown
Contributor

@wendigo wendigo commented Nov 27, 2025

Airlift contribution check list

  • Git commit messages follow https://cbea.ms/git-commit/.
  • All automated tests are passing.
  • Pull request was categorized using one of the existing labels.

@wendigo wendigo force-pushed the serafin/explicit-compression branch from 29687d2 to d6d5941 Compare November 27, 2025 14:04
Comment on lines +484 to +486
catch (Exception e) {
return Optional.empty();
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

When does this happen and why are we ignoring it silently?

Comment on lines +380 to +383
if (config.isDeflateCompressionEnabled()) {
createContentDecoderFactory(new GzipCompression())
.ifPresent(httpClient.getContentDecoderFactories()::put);
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Deflate and gzip are different.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Encoding#deflate

Content-Encoding: gzip
Content-Encoding: deflate

deflate
Using the zlib structure (defined in RFC 1950) with the deflate compression algorithm (defined in RFC 1951).

gzip
A format using the Lempel-Ziv coding (LZ77), with a 32-bit CRC. This is the original format of the UNIX gzip program.

@mosabua
Copy link
Copy Markdown
Contributor

mosabua commented Mar 4, 2026

@wendigo any progress on this .. we need it for Trino Gateway trinodb/trino-gateway#765

@mosabua
Copy link
Copy Markdown
Contributor

mosabua commented Apr 29, 2026

Ping @wendigo ..

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