Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rescue IO::WaitReadable instead of EAGAIN for blocking read
On Windows, `read_nonblock` raises `Errno::EWOULDBLOCK` if a blocking read would occur, which is a different value from `Errno::EAGAIN`. Both of these errors are extended by `IO::WaitReadable` which is Ruby's recommended exception class for retrying `read_nonblock`.
- Loading branch information