Permalink
Browse files

set a read timeout for net::http (network outage pointed this out to me)

  • Loading branch information...
1 parent 0d0b48d commit 2a8804663941be3951f66c75370195eaed76aac2 @atmos committed Dec 29, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 app/models/braintree/query.rb
@@ -12,6 +12,7 @@ def run
server = Net::HTTP.new(uri.host, 443)
server.use_ssl = true
+ server.read_timeout = 20
server.verify_mode = OpenSSL::SSL::VERIFY_NONE
resp = server.start do |http|

0 comments on commit 2a88046

Please sign in to comment.