Skip to content

Commit

Permalink
Don't set ssl_timeout for Net::HTTP in jruby
Browse files Browse the repository at this point in the history
  • Loading branch information
bblimke committed Mar 16, 2012
1 parent 1850e8b commit b521328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/acceptance/net_http/net_http_spec_helper.rb
Expand Up @@ -23,7 +23,7 @@ def http_request(method, uri, options = {}, &block)
if uri.scheme == "https"
http.use_ssl = true
#1.9.1 has a bug with ssl_timeout
http.ssl_timeout = 20 if http.respond_to?("ssl_timeout=")
http.ssl_timeout = 20 unless RUBY_PLATFORM =~ /java/
http.open_timeout = 60
http.read_timeout = 60
end
Expand Down

0 comments on commit b521328

Please sign in to comment.