Skip to content
This repository has been archived by the owner on Dec 28, 2021. It is now read-only.

Commit

Permalink
Adding a readTimeout for https requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Briege Murray committed Nov 11, 2013
1 parent 8504540 commit dca5463
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/icontact/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def request(kind, url, data, options)
http = Net::HTTP.new(full_url.host, full_url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
http.read_timeout = 500
response = http.start do |web|
web.request(request)
end
Expand Down

0 comments on commit dca5463

Please sign in to comment.