This repository has been archived by the owner on May 4, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unix: handle stream write errors properly
1. Ensure that failed writes don't leave the write queue in an inconsistent state. Before, write requests were handed back to the user but were not removed from the write queue. The cause of at least one use-after-free bug. 2. Pass the error to the callback on the next iteration of the event loop instead of returning it immediately.
- Loading branch information
1 parent
066dc6b
commit bca4996
Showing
2 changed files
with
34 additions
and
47 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