From: "Luis G." Date: 2011-01-24T20:22:28+09:00 Subject: Re: execution expired - timeout Hey again. Here is an example to explain you the problem. In attachment there are 2 files. Put both in the same directory run the main.rb. $ruby main.rb Maybe you need to install some gems... Just check the imports I do in example.rb A log file will be created in the same directory. Do a 'tail -f' in the log file so you can check what is going on. You should get the execution exception - timeout exception: E, [2011-01-24T12:13:53.045896 #8446] ERROR -- : execution expired (#) /usr/lib/ruby/1.8/timeout.rb:60:in `extract_information' ./example.rb:61:in `run' /usr/lib/ruby/1.8/timeout.rb:62:in `timeout' ./example.rb:60:in `run' ./example.rb:52:in `each' ./example.rb:52:in `run' ./example.rb:37:in `each' ./example.rb:37:in `run' main.rb:6 for tracker: 'http://tracker4.finalgear.com/announce' And if you check the code I have the following exception handling in extract_information(url, log) function: rescue Timeout::Error => e (...) end So, if it's a timeout exception, why the code don't enter in the Timeout::Error => e exception handling? what I'm doing wrong? Attachments: http://www.ruby-forum.com/attachment/5783/main.rb http://www.ruby-forum.com/attachment/5784/example.rb -- Posted via http://www.ruby-forum.com/.