Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix spin-loop in websocket write when socket buffer is full
If the socket buffer is (almost) full and can hold some of the websocket frame we made, a return value of 0 bytes written would make it try forever (calling the write() syscall), until either the socket buffer was drained, or until it errored out with ETIMEDOUT.
- Loading branch information