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

Don't try to fill up the entire buffer on a read. #5

Merged
merged 1 commit into from Oct 15, 2015

Commits on Sep 27, 2015

  1. Don't try to fill up the entire buffer on a read.

    An LZ4 frame is designed so that partial blocks can be "flushed" by
    the encoder at any time.  A frame can be a long term stream sent over
    a network connection.  The decoder needs to be sure that it only calls
    the underlying read once at a time, when necessary, and be able to
    return partially filled buffers.  This allows the caller to respond
    to flushed data without the decoder blocking on a network read.
    bvinc83 committed Sep 27, 2015
    Configuration menu
    Copy the full SHA
    f517177 View commit details
    Browse the repository at this point in the history