Timeouts in Net::HTTP raise Timeout::ExitException instead of Timeout::Error
for Ruby 1.8
-----------------------------------------------------------------------------------------
Key: JRUBY-3817
URL: http://jira.codehaus.org/browse/JRUBY-3817
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.3.1
Environment: Linux 2.6.26-2-686, debian lenny, java 1.6.0_12
Reporter: Mikio Braun
Priority: Minor
Attachments: test_net_http_timeout.rb
Timeouts raised by Net::HTTP raise Timeout::ExitException instead of
Timeout::Error.
For example:
require 'net/http'
require 'timeout'
begin
http = Net::HTTP.new('www.google.de')
http.open_timeout = 0.01
response = http.start do |h|
h.request_get '/index.html'
end
rescue Exception => e
puts "Got #{e.class}: #{e}"
end
On MRI:
-> Got Timeout::Error: execution expired
On JRuby 1.3.1
-> Got Timeout::ExitException: execution expired
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email