Actions
Backport #3510
closedssl_timeout appears not to work in net/https
Status:
Closed
Assignee:
Description
=begin
It is possible to cause Net::HTTP.get to block indefinitely even when values are given for open_timeout, read_timeout, and ssl_timeout. The problem only happens when use_ssl? is true: the behaviour of non-SSL requests is as expected.
To reproduce:
- Run "listen.rb" in the background (simulates a misbehaving server that accepts connections but doesn't deliver any data)
- Run "http_test.rb" -- notice that the exception is delivered after 5 seconds, as expected.
- Run "https_test.rb" -- notice that the GET call never returns, and no timeout exception is delivered.
(Apologies if this is the wrong spot for this. Is net/https considered part of Ruby's standard library?)
=end
Files
Updated by nahi (Hiroshi Nakamura) over 13 years ago
- Assignee set to nahi (Hiroshi Nakamura)
=begin
=end
Updated by nahi (Hiroshi Nakamura) over 13 years ago
=begin
Note: SSL_connect invocation is blocking for now. (JRuby-OSSL as well)
=end
Updated by nahi (Hiroshi Nakamura) over 13 years ago
=begin
Note: timeout for read (SSL_read) should work as you expected. Let me know if it doesn't work.
=end
Updated by shyouhei (Shyouhei Urabe) over 13 years ago
- Status changed from Open to Assigned
=begin
=end
Updated by jeremyevans0 (Jeremy Evans) almost 5 years ago
- Tracker changed from Bug to Backport
- Project changed from Ruby 1.8 to Backport187
- Description updated (diff)
- Status changed from Assigned to Closed
- Target version deleted (
Ruby 1.8.6) - ruby -v deleted (
ruby 1.8.6 (2008-08-11 patchlevel 287) [i686-darwin9.7.0])
Actions
Like0
Like0Like0Like0Like0Like0