You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ideally, Timeout::timeout would not block for IO#gets or IO.select. I've implemented this workaround in capybara-webkit but would prefer a proper solution.
The text was updated successfully, but these errors were encountered:
I an attempt to use non-blocking IO to work around the same issue for
IO#gets
, I discovered thatIO.select
cannot be interrupted byTimeout::timeout
.I expected the following to work:
So long as the read end of the pipe receives no data, and is not closed, this will block forever.
I found that the following results in the desired behavior:
Ideally,
Timeout::timeout
would not block forIO#gets
orIO.select
. I've implemented this workaround in capybara-webkit but would prefer a proper solution.The text was updated successfully, but these errors were encountered: