mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
tool/downloader.rb: increase retries
GitHub download failed on 13:50:36 https://ci.appveyor.com/project/ruby/ruby/build/1.0.9221 and it also failed on 13:51:35 (all builds between them failed too). It means that we need to expect GitHub 502 that continues 1 minute. So I configured 6 retries, that will sleep at most 91s in total. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fe781af377
commit
4fe8308e0c
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ class Downloader
|
|||
$stdout.flush
|
||||
end
|
||||
begin
|
||||
data = with_retry(3) do
|
||||
data = with_retry(6) do
|
||||
url.read(options.merge(http_options(file, since.nil? ? true : since)))
|
||||
end
|
||||
rescue OpenURI::HTTPError => http_error
|
||||
|
|
Loading…
Reference in a new issue