mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 12:34:31 +00:00
c9628cf0da
std::io::Read should return Ok(0) on EOF so that callers can read all of the data of a variable length stream. The fix is implemented in PipeConnection::read_internal, so it will affect more than just the std::io::Read users of Pipe and likely cause some breakages, but we decided that making them inconsistent would be too confusing. I also added a test for std::io::Write, but didn't not change its behavior. The stdlib docs aren't clear if there are similar expectations for writes and methods like write_all ought to work as expected with the currently implementation. BUG=b:301269927 Change-Id: I808993cdad722a4e95b28800e5681035f254e637 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5768033 Reviewed-by: Noah Gold <nkgold@google.com> Commit-Queue: Frederick Mayle <fmayle@google.com> |
||
---|---|---|
.. | ||
base_event_token_derive | ||
src | ||
tests | ||
.build_test_serial | ||
Cargo.toml |