From: Andrew Miklas Date: 2010-06-30T17:25:12+09:00 Subject: [ruby-core:30967] [Bug #3510] ssl_timeout appears not to work in net/https Bug #3510: ssl_timeout appears not to work in net/https http://redmine.ruby-lang.org/issues/show/3510 Author: Andrew Miklas Status: Open, Priority: Normal Category: lib, Target version: Ruby 1.8.6 ruby -v: ruby 1.8.6 (2008-08-11 patchlevel 287) [i686-darwin9.7.0] 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: 1. Run "listen.rb" in the background (simulates a misbehaving server that accepts connections but doesn't deliver any data) 2. Run "http_test.rb" -- notice that the exception is delivered after 5 seconds, as expected. 3. 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?) ---------------------------------------- http://redmine.ruby-lang.org