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

Update documentation of gzip bufferSize property #8755

Open
wants to merge 1 commit into
base: release/4.0.x
Choose a base branch
from

Conversation

tbcardoso
Copy link

Problem:

The documentation for the gzip bufferSize property mentions it is used for compressing. It is actually used for decompressing requests.

The bufferSize property in GzipHandlerFactory is passed to the setInflateBufferSize method of GzipHandler.
Per the documentation of the setInflateBufferSize:

Set the size (in bytes) of the Inflater buffer used to inflate comrpessed requests.

Solution:

Just fix the documentation of the bufferSize property to mention decompressing instead of compressing.

@tbcardoso tbcardoso requested a review from a team as a code owner May 10, 2024 20:17
@github-actions github-actions bot added this to the 4.0.8 milestone May 10, 2024
The documentation for the gzip bufferSize property mentions it is used
for compressing. It is actually used for decompressing requests.

The bufferSize property in GzipHandlerFactory is passed to the
setInflateBufferSize method of GzipHandler [1].
Per the documentation of the setInflateBufferSize [2]:
> Set the size (in bytes) of the Inflater buffer used to inflate comrpessed requests.

[1] https://github.com/dropwizard/dropwizard/blob/d3dd6fc3677cd2b84c5018f1e8cdef3a969db2c3/dropwizard-jetty/src/main/java/io/dropwizard/jetty/GzipHandlerFactory.java#L247
[2] https://eclipse.dev/jetty/javadoc/jetty-11/org/eclipse/jetty/server/handler/gzip/GzipHandler.html#setInflateBufferSize(int)
@tbcardoso tbcardoso force-pushed the release/4.0.x-gzip-bufferSize-docs branch from c7e720e to cc44232 Compare May 13, 2024 07:17
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.

None yet

1 participant