Skip to content

[3.8] bpo-39389: gzip: fix compression level metadata (GH-18077) #18100

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

Merged
merged 1 commit into from
Jan 21, 2020

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jan 21, 2020

As described in RFC 1952, section 2.3.1, the XFL (eXtra FLags) byte of a
gzip member header should indicate whether the DEFLATE algorithm was
tuned for speed or compression ratio. Prior to this patch, archives
emitted by the gzip module always indicated maximum compression.
(cherry picked from commit eab3b3f)

Co-authored-by: William Chargin wchargin@gmail.com

https://bugs.python.org/issue39389

As described in RFC 1952, section 2.3.1, the XFL (eXtra FLags) byte of a
gzip member header should indicate whether the DEFLATE algorithm was
tuned for speed or compression ratio. Prior to this patch, archives
emitted by the `gzip` module always indicated maximum compression.
(cherry picked from commit eab3b3f)

Co-authored-by: William Chargin <wchargin@gmail.com>
@miss-islington
Copy link
Contributor Author

@wchargin and @serhiy-storchaka: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit ab0d8e3 into python:3.8 Jan 21, 2020
@miss-islington miss-islington deleted the backport-eab3b3f-3.8 branch January 21, 2020 11:42
@miss-islington
Copy link
Contributor Author

@wchargin and @serhiy-storchaka: Status check is done, and it's a success ✅ .

1 similar comment
@miss-islington
Copy link
Contributor Author

@wchargin and @serhiy-storchaka: Status check is done, and it's a success ✅ .

webknjaz added a commit to cherrypy/cherrypy that referenced this pull request Nov 15, 2020
This change implements a fix to compression in gzip tool that CPython
applied per https://bugs.python.org/issue39389. It uses proper XFL
value in gzip header per https://tools.ietf.org/html/rfc1952, section
2.3.1.

Refs:
* python/cpython#18077 (CPython 3.9.0+)
* python/cpython#18100 (CPython 3.8.2+)
* python/cpython#18101 (CPython 3.7.7+)

Fixes #1849
webknjaz added a commit to cherrypy/cherrypy that referenced this pull request Nov 15, 2020
This change implements a fix to compression in gzip tool that CPython
applied per https://bugs.python.org/issue39389. It uses proper XFL
value in gzip header per https://tools.ietf.org/html/rfc1952, section
2.3.1.

Refs:
* python/cpython#18077 (CPython 3.9.0+)
* python/cpython#18100 (CPython 3.8.2+)
* python/cpython#18101 (CPython 3.7.7+)

Fixes #1849

(cherry picked from commit 3925ae9)
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.

5 participants