Displaying 1 result from an estimated 1 matches for "battling_wedged_mongrels_with_a".
2009 Sep 04
0
Mongrel Timeout for System Calls
...I wrapped the call with a timeout of 20
seconds.
When I executed a test, it didn''t appear to do anything as the process
still took 120-130 seconds to complete.
After digging around a bit, I discovered this writeup about timeout and
system calls
(http://adamblog.heroku.com/past/2008/6/17/battling_wedged_mongrels_with_a/).
I immediately installed SystemTimer
(http://ph7spot.com/articles/system_timer) and tried again:
begin
require ''system_timer''
MyTimer = SystemTimer
rescue LoadError
require ''timeout''
MyTimer = Timeout
end
def invoke(rfc)
MyTimer.timeout_after(20....