Net::HTTP doesn't timeout as expected when using timeout.rb
-----------------------------------------------------------
Key: JRUBY-3928
URL: http://jira.codehaus.org/browse/JRUBY-3928
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.3.1
Environment: OSX 10.5, JRUBY 1.3.1
Reporter: Logan Barnett
Fix For: JRuby 1.4
HTTP requests don't time out as expected when using timeout.rb:
# First create a generic socket server listening on 9000, by running the
following in a terminal window
# $ nc -l 9090
uri = URI.parse('http://localhost:9090/index.html')
Timeout::timeout(5) do
Net::HTTP.start(uri.host, uri.port) do |http|
http.open_timeout = http.read_timeout = 5
http.request_get(uri.request_uri)
end
end
--
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