lib/braintree/http.rb in braintree-2.42.0 vs lib/braintree/http.rb in braintree-2.43.0
- old
+ new
@@ -58,11 +58,11 @@
end
end
def _http_do(http_verb, path, body = nil)
connection = Net::HTTP.new(@config.server, @config.port)
- connection.open_timeout = 60
- connection.read_timeout = 60
+ connection.open_timeout = @config.http_open_timeout
+ connection.read_timeout = @config.http_read_timeout
if @config.ssl?
connection.use_ssl = true
connection.verify_mode = OpenSSL::SSL::VERIFY_PEER
connection.ca_file = @config.ca_file
connection.verify_callback = proc { |preverify_ok, ssl_context| _verify_ssl_certificate(preverify_ok, ssl_context) }