Visitar URL original
Fix zstd multi-frame decompression failure (#2716) by Andrewtangtang · Pull Request #2717 · dpkp/kafka-python · GitHub
Skip to content

Fix zstd multi-frame decompression failure (#2716) - #2717

Merged
dpkp merged 1 commit into
dpkp:masterfrom
Andrewtangtang:fix/zstd-multi-frame-decompression
Feb 25, 2026
Merged

dpkp merged 1 commit into
dpkp:masterfrom
Andrewtangtang:fix/zstd-multi-frame-decompression

Conversation

@Andrewtangtang

Copy link
Copy Markdown
Contributor

Summary

Use stream_reader(read_across_frames=True) instead of one-shot decompress() in zstd_decode(), so that payloads with multiple concatenated zstd frames are decoded correctly.

Related Issues

Fixes #2716

Use stream_reader(read_across_frames=True) instead of one-shot
decompress() so that payloads with multiple concatenated zstd
frames are decoded correctly.
@Andrewtangtang

Copy link
Copy Markdown
Contributor Author

@dpkp Could you please take a look at this PR?

@dpkp dpkp left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks!

@dpkp
dpkp merged commit 949a0c7 into dpkp:master Feb 25, 2026
19 checks passed
dpkp pushed a commit that referenced this pull request Apr 9, 2026
dpkp pushed a commit that referenced this pull request Apr 9, 2026
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.

[Bug] Zstandard multi-frame decompression failure

2 participants