Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: return a WriteZero error if frames cannot be written (#783)
Some operating systems will allow you continually call `write()` on a closed socket, and will return `Ok(0)` instead of an error. This patch checks for a zero write, and instead of looping forever trying to write, returns a proper error. Closes #781 Co-authored-by: leibeiyi <[email protected]>
- Loading branch information