socketry / async

An awesome asynchronous event-driven reactor for Ruby.
MIT License
2.04k stars 85 forks source link

Add support for IO#timeout in `io_read`, `io_write` and `io_wait`. #296

Closed ioquatix closed 6 months ago

ioquatix commented 6 months ago

IO#timeout was introduced recently and is a safety mechanism for dealing with blocking IO operations. We need to correctly handle it in the scheduler.

We also probably need to implement an upstream fix as it's not clear that wait_readable/wait_writable should raise an exception as the current implementation does.

Types of Changes

Contribution