Skip to content

Fix connection leak; Add deflate and zstd decompressions#179

Merged
NGTmeaty merged 1 commit intomasterfrom
fix-gzip-conn-leak
Mar 2, 2026
Merged

Fix connection leak; Add deflate and zstd decompressions#179
NGTmeaty merged 1 commit intomasterfrom
fix-gzip-conn-leak

Conversation

@yzqzss
Copy link
Collaborator

@yzqzss yzqzss commented Mar 1, 2026

The underlying response.Body (connection) of the gzip responses were not closed, since they have been replaced by the gzip reader.

(Theoretically, this affects all responses with Content-Encoding: gzip that are intercepted by discard hook.)


Also added deflate and zstd decompressions.

the underlying body (connection) of the gzipReader wrapped response is not closed
@yzqzss yzqzss added the bug Something isn't working label Mar 1, 2026
@yzqzss yzqzss requested a review from NGTmeaty March 1, 2026 12:25
@yzqzss yzqzss changed the title Fix connection leak Fix connection leak; Add deflate and zstd decompressions Mar 2, 2026
Copy link
Collaborator

@NGTmeaty NGTmeaty left a comment

Choose a reason for hiding this comment

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

Amazing find! I had one question:

@NGTmeaty
Copy link
Collaborator

NGTmeaty commented Mar 2, 2026

Thanks again for this PR!

@NGTmeaty NGTmeaty merged commit a166aa4 into master Mar 2, 2026
6 checks passed
@NGTmeaty NGTmeaty deleted the fix-gzip-conn-leak branch March 2, 2026 19:27
@yzqzss yzqzss self-assigned this Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants