diff options
author | glass <glass@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-21 06:23:55 +0000 |
---|---|---|
committer | glass <glass@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-21 06:23:55 +0000 |
commit | 90653369097d4942cb0d397d77cf9106c839cbfc (patch) | |
tree | fefe5d572e96f199d9f0198a9306cfd025ede00f | |
parent | 954d0815e9fea323c5c6b6ba072c0aded845a9b1 (diff) | |
download | ruby-90653369097d4942cb0d397d77cf9106c839cbfc.tar.gz |
* lib/net/http.rb: handle Errno::ETIMEDOUT in Net::HTTP#transport_request
A patch from casperisfine (Jean byroot Boussier).
[Fix GH-2012]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | lib/net/http.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb index 31cbb7a866..bc181c01af 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -1520,7 +1520,7 @@ module Net #:nodoc: rescue Net::OpenTimeout raise rescue Net::ReadTimeout, IOError, EOFError, - Errno::ECONNRESET, Errno::ECONNABORTED, Errno::EPIPE, + Errno::ECONNRESET, Errno::ECONNABORTED, Errno::EPIPE, Errno::ETIMEDOUT, # avoid a dependency on OpenSSL defined?(OpenSSL::SSL) ? OpenSSL::SSL::SSLError : IOError, Timeout::Error => exception |