ruby-changes:52885
From: k0kubun <ko1@a...>
Date: Tue, 16 Oct 2018 18:29:27 +0900 (JST)
Subject: [ruby-changes:52885] k0kubun:r65097 (trunk): tool/downloader.rb: retry Net::ReadTimeout
k0kubun 2018-10-16 18:29:23 +0900 (Tue, 16 Oct 2018) New Revision: 65097 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65097 Log: tool/downloader.rb: retry Net::ReadTimeout as failed in https://ci.appveyor.com/project/ruby/ruby/builds/19540849/job/9p9pq0b7hfrb2r8q Modified files: trunk/tool/downloader.rb Index: tool/downloader.rb =================================================================== --- tool/downloader.rb (revision 65096) +++ tool/downloader.rb (revision 65097) @@ -271,7 +271,7 @@ class Downloader https://github.com/ruby/ruby/blob/trunk/tool/downloader.rb#L271 times = 0 begin block.call - rescue Errno::ETIMEDOUT, SocketError, OpenURI::HTTPError => e + rescue Errno::ETIMEDOUT, SocketError, OpenURI::HTTPError, Net::ReadTimeout => e raise if e.is_a?(OpenURI::HTTPError) && e.message !~ /^50[023] / # retry only 500, 502, 503 for http error times += 1 if times <= max_times -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/