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

Do not recycle head Segment in DeflaterSink #1609

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

boyuzhang-msft
Copy link

This change only recycles head Segment when the sink is closed, to avoid the risk of using the same buffer for both input and output for Java's Deflater calls.

Fixes bug: #1608

@boyuzhang-msft boyuzhang-msft changed the title Only recycle head when sink is closed Do not recycle head Segment in DeflaterSink Mar 25, 2025
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.

1 participant