lib/onering/api.rb in onering-client-0.0.29 vs lib/onering/api.rb in onering-client-0.0.30
- old
+ new
@@ -59,11 +59,11 @@
}.first
if @_pemfile
@_pem = File.read(File.expand_path(@_pemfile))
@_http = Net::HTTP.new(@_uri.host, (@_uri.port || 443))
- @_http.open_timeout = 10
- @_http.read_timeout = 10
+ @_http.open_timeout = 30
+ @_http.read_timeout = 120
@_http.use_ssl = true
@_http.cert = OpenSSL::X509::Certificate.new(@_pem)
@_http.key = OpenSSL::PKey::RSA.new(@_pem)
@_http.verify_mode = OpenSSL::SSL::VERIFY_NONE
end