Skip to content

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

Description

@sgmihai

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions