From: Brian Candler Date: 2010-08-19T18:44:51+09:00 Subject: Re: Timeout exception open-uri Luis Some wrote: > The thing is, I'm trying to catch that exception and I'm not getting > success with that task. I tried: > rescue Timeout::Error That's not the exception you're getting (read the error message carefully). It's: rescue Errno::ETIMEDOUT Or better, rescue SystemCallError which is the superclass of all the Errno::* errors. These are errors generated by the operating system itself, and this one is occuring before your 40 second timeout has expired. -- Posted via http://www.ruby-forum.com/.