Displaying 1 result from an estimated 1 matches for "timeout_after".
2009 Sep 04
0
Mongrel Timeout for System Calls
...d_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.seconds) do
rfc.invoke
end
rescue Timeout::Error
raise Timeout::Error, "RFC Call timed out after 20 seconds"
end
This time, it executed and waited the full length of time (120-130
seconds). 20 seconds AFTER it completed, I then saw the "RFC Call timed
out aft...