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

FISH-376 Allow finer configuration details of HTTP GZIP compression #5407

Merged
merged 2 commits into from
Sep 17, 2021

Conversation

JamesHillyard
Copy link
Member

@JamesHillyard JamesHillyard commented Sep 10, 2021

Description

An improvement allowing finer configuration of HTTP GZip Compression. It allows the user to configure between three compression strategies: Default, Filtered and Huffman Only.
It also allows for setting the compression level, -1 is the default level, 0 is no compression, 1 is fastest speed and 9 is fastest compression.

Changes have also been made in patched-src-grizzly: payara/patched-src-grizzly#31

Important Info

Blockers

Requires PR in patched-src-grizzly to be merged.

Testing

New tests

CompressionTest in Payara samples. Tests compression in all strategies and levels works.

Testing Performed

Manually tested compression works with:
curl http://localhost:8080 --silent -H "Accept-Encoding: gzip,deflate" --write-out "%{size_download}\n" --output /dev/null

Tested using the new test in Payara Samples.

Testing Environment

Windows 10 Pro, Maven 3.6.3, JDK8

Documentation

Documentation PR: payara/Payara-Community-Documentation#246

Notes for Reviewers

Changes have also been made in
The new setting look like the following image under Network Config -> Network Listeners -> {Listener} -> HTTP
image

Signed-off-by: JamesHillyard <james.hillyard@payara.fish>
@JamesHillyard
Copy link
Member Author

JamesHillyard commented Sep 10, 2021

Jenkins test please

Edit: This won't be able to be tested in Jenkins until the PR in patched-src-grizzly has been merged.

@rdebusscher
Copy link

Do we need a newer version of our Patched Grizzly? no pom.xml changes.

Copy link
Member

@Pandrex247 Pandrex247 left a comment

Choose a reason for hiding this comment

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

Aside from missing update to use new version of Grizzly so this can compile, LGTM

Signed-off-by: JamesHillyard <james.hillyard@payara.fish>
@JamesHillyard
Copy link
Member Author

Jenkins test please

@JamesHillyard JamesHillyard merged commit b1c9d16 into payara:master Sep 17, 2021
JamesHillyard added a commit to JamesHillyard/Payara that referenced this pull request Oct 28, 2021
FISH-376 Allow finer configuration details of HTTP GZIP compression
JamesHillyard added a commit to JamesHillyard/Payara that referenced this pull request Dec 23, 2021
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.

4 participants