Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6115587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:06:31+00:00 2026-05-23T15:06:31+00:00

jruby-lint reports the use of Timeout::timeout as a potential source of problems: ./app/models/xyz.rb:273: [timeout,

  • 0

jruby-lint reports the use of Timeout::timeout as a potential source of problems:

   ./app/models/xyz.rb:273: [timeout, warning] Timeout in JRuby does not work in many cases

But googling that warning seems to show that most of the bugs reported are already fixed or apply to very specific cases. Moreover, it looks like JRuby’s implementation of Timeout::timeout is more reliable and performant than MRI’s implementation. Is it so?

I am using it to handle timeouts in Net::HTTP requests, which is a fairly common use case, so I guess that if it didn’t work I would find open bugs reported. Can I disregard jrlint’s warning?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:06:31+00:00Added an answer on May 23, 2026 at 3:06 pm

    timeout in jruby 1.5+ should be much better than it was in older versions, as it is now implemented natively in JRuby (see https://github.com/jruby/jruby/commits/master/src/org/jruby/ext/Timeout.java) vs the old ruby implementation that was indeed pretty broken.

    Looking at the history, there have been some bug fixes related to net/http since 1.5, so use 1.6+ for best results.

    So I’d say, yes, you can disregard that warning.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Early reports of JRuby on Google App Engine indicate that ActiveRecord does not work
I'd like to profile my JRuby app. For MRI I always use ruby-prof, but
I'm looking at ways to deploy a Ruby on Rails app (running on JRuby)
My jruby rack sinatra compass haml app correctly reloads changes to *.rb files, but
Attempting to use JRuby 1.2.0 and Rails 2.3.2 with an embedded Derby database. I've
My JRuby on rails app works fine on Tomcat 6.0, But when I deploy
Netbeans 6.9 JRuby 1.5.0 rails 2.3.4 Error example: NoMethodError in Report#week Showing app/views/report/_list_record.html.erb where
i deployed a jruby/rails app to tomcat6 through a warbler-built war. system is ubuntu
I'm using jruby-1.5.3 with a rails 2.3.5 app. I've just started playing around with
In my app (jruby, rails 3, mongodb) I setup my data access objects (and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.