Category Archives: Mongrel

Timing out Rails from Mongrel

While we’re on the timeout tip, I’d like to talk about a fail-safe timeout for mongrel rails. We’ve talked about making sure that net/http and memcache-client behave, but what about other slow actions? Since mongrel only processes one rails request at a time, other requests can start to pile up. In rare cases, those other [...]

Also posted in Extensions, Ruby | 2 Comments

Net::HTTP @open_timeout

We were recently fighting with some long-running requests hogging-up the single-threaded mongrel processes and causing requests to timeout. To be fair to mongrel, the only reason it is effectively single-threaded is because of Rails. Anyway, we were having a tough time figuring out how to determine where in our Rails code we were sitting there [...]

Also posted in Ruby | 2 Comments
  • Rapleaf Is Hiring!

    We are looking for engineers who want to solve challenging problems.

    We have great people, do great work, and have great perks.

    Know someone who might be interested? Refer a friend and get $5,000 for successful hires.

    See our current openings at
    www.rapleaf.com/careers