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

Use first nonempty buffer in vectored I/O #1998

Merged
merged 1 commit into from Dec 10, 2019
Merged

Use first nonempty buffer in vectored I/O #1998

merged 1 commit into from Dec 10, 2019

Commits on Dec 7, 2019

  1. Use first nonempty buffer in vectored I/O

    Previous implementation would use the first buffer even when it was
    empty and other nonempty buffers are provided. This could result in
    `Ok(0)` return value which has otherwise a special meaning. The new
    implementation uses the first nonempty buffer instead to avoid the
    issue.
    
    Previous implementation would return early if no buffers are provided.
    The new implementation delegates operation using an empty buffer. This
    gives an implementation an ability to decide how an empty read / write
    operation should behave.
    
    This change aligns the implementation with synchronous version of those
    traits.
    tmiasko committed Dec 7, 2019
    Copy the full SHA
    1169b5d View commit details
    Browse the repository at this point in the history