What is the current status of Timeout::timeout in JRuby? Is it reliable? -
jruby-lint reports use of timeout::timeout potential source of problems:
./app/models/xyz.rb:273: [timeout, warning] timeout in jruby not work in many cases but googling warning seems show of bugs reported fixed or apply specific cases. moreover, looks jruby's implementation of timeout::timeout more reliable , performant mri's implementation. so?
i using handle timeouts in net::http requests, common use case, guess if didn't work find open bugs reported. can disregard jrlint's warning?
timeout in jruby 1.5+ should better in older versions, implemented natively in jruby (see https://github.com/jruby/jruby/commits/master/src/org/jruby/ext/timeout.java) vs old ruby implementation indeed pretty broken.
looking @ history, there have been bug fixes related net/http since 1.5, use 1.6+ best results.
so i'd say, yes, can disregard warning.
Comments
Post a Comment