We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Timeout::timeout is inherently unsafe (see https://www.mikeperham.com/2015/05/08/timeout-rubys-most-dangerous-api/ and http://blog.headius.com/2008/02/ruby-threadraise-threadkill-timeoutrb.html), and also inefficient because it spins up a new thread on each invocation.
A better solution would be to switch to all the socket timeout options now available, or to use nonblocking io and IO.select
IO.select
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Using Timeout::timeout is inherently unsafe (see https://www.mikeperham.com/2015/05/08/timeout-rubys-most-dangerous-api/ and http://blog.headius.com/2008/02/ruby-threadraise-threadkill-timeoutrb.html), and also inefficient because it spins up a new thread on each invocation.
A better solution would be to switch to all the socket timeout options now available, or to use nonblocking io and
IO.select
The text was updated successfully, but these errors were encountered: