Luis G. wrote in post #976533:
> Any clues?

1. Write a standalone test program which demonstrates the problem. I 
tried the following, but it works fine:

require 'timeout'
require 'open-uri'

begin
Timeout::timeout(1) do
  open("http://1.1.1.1/foo").read
end
rescue Timeout::Error
  puts "Rescued"
end

If it works for you too, then keep adjusting it until you find what it 
is about your full code which causes the problem.

2. Describe the details of your system. I ran the above under
ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]
(Ubuntu 10.04 x86_64)

3. I see your backtrace doesn't include function 'extract_information', 
so I suspect that the error is actually being raised from somewhere 
other than where you think.

Regards,

Brian.

-- 
Posted via http://www.ruby-forum.com/.