ruby-changes:54675
From: glass <ko1@a...>
Date: Mon, 21 Jan 2019 15:24:00 +0900 (JST)
Subject: [ruby-changes:54675] glass:r66891 (trunk): * lib/net/http.rb: handle Errno::ETIMEDOUT in Net::HTTP#transport_request
glass 2019-01-21 15:23:55 +0900 (Mon, 21 Jan 2019) New Revision: 66891 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66891 Log: * lib/net/http.rb: handle Errno::ETIMEDOUT in Net::HTTP#transport_request A patch from casperisfine (Jean byroot Boussier). [Fix GH-2012] Modified files: trunk/lib/net/http.rb Index: lib/net/http.rb =================================================================== --- lib/net/http.rb (revision 66890) +++ lib/net/http.rb (revision 66891) @@ -1520,7 +1520,7 @@ module Net #:nodoc: https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L1520 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/