-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve handling of truncated streams
DisregardBrokenPipe needs to implement write_all() as well as write() because the former treats a 0-byte write as an error, whereas DPB should no-op in that scenario. Note that this is fix is in main.rs and therefore _only_ fixes the CLI. Along with the existing TODO on DPB it may be preferable to stop using write_all() in lib.rs, but for now I'm erring on the side of letting library users handle failures themselves. Fixes #44
- Loading branch information
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters