Skip to content

Expose a way to decompress "partial" RAW_DEFLATE data, that doesn't have lastblock bit set #96

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

Open
sgmihai opened this issue Apr 2, 2025 · 0 comments

Comments

@sgmihai
Copy link

sgmihai commented Apr 2, 2025

As previously talked here https://forum.nim-lang.org/t/12495 (thanks for constructive criticism btw).
I patched proc inflate by adding `and (b.len - b.pos != 0) in the while loop condition, and not it works.
But it would be nice to have this functionality exposed in some way. It seems nntp servers treat the whole connection, not each message, as a stream, and only send the lastBlock bit set on disconnection, so you need to decompress data in the meantime.
I'd rather use zippy than zlib for no external dependencies.

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

No branches or pull requests

1 participant