Treat connection timeouts as connection failures in net-http adapter.

This commit is contained in:
Mike Bourgeous 2014-11-13 17:41:48 -07:00
parent 458f319c0d
commit 9ad0fcd38a

View File

@ -25,6 +25,7 @@ module Faraday
]
NET_HTTP_EXCEPTIONS << OpenSSL::SSL::SSLError if defined?(OpenSSL)
NET_HTTP_EXCEPTIONS << Net::OpenTimeout if defined?(Net::OpenTimeout)
def call(env)
super