Skip to content

Commit

Permalink
Treat connection timeouts as connection failures in net-http adapter.
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-bourgeous committed Nov 14, 2014
1 parent 458f319 commit 9ad0fcd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/faraday/adapter/net_http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class NetHttp < Faraday::Adapter
]

NET_HTTP_EXCEPTIONS << OpenSSL::SSL::SSLError if defined?(OpenSSL)
NET_HTTP_EXCEPTIONS << Net::OpenTimeout if defined?(Net::OpenTimeout)

def call(env)
super
Expand Down

0 comments on commit 9ad0fcd

Please sign in to comment.