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

read_buf_exact: on error, all read bytes are appended to the buffer #109022

Merged
merged 1 commit into from
Mar 19, 2023

Commits on Mar 11, 2023

  1. read_buf_exact: on error, all read bytes are appended to the buffer

    Guarantee that when `read_buf_exact` returns, all bytes read will be
    appended to the buffer. Including the case when the operations fails.
    
    The motivating use case are operations on a non-blocking reader. When
    `read_buf_exact` fails with `ErrorKind::WouldBlock` error, the operation
    can be resumed at a later time.
    tmiasko committed Mar 11, 2023
    Configuration menu
    Copy the full SHA
    c21f1d0 View commit details
    Browse the repository at this point in the history