From d5b4b59500f00c26e19aec838adaef1baf14120c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Fri, 20 Jun 2025 16:52:58 +0200 Subject: [PATCH] [rubygems/rubygems] Add Errno::ENETDOWN and Errno::EHOSTUNREACH to non retryable errors Connection errors as well, so useless to retry. https://github.com/rubygems/rubygems/commit/d2d211651a --- lib/bundler/fetcher/downloader.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bundler/fetcher/downloader.rb b/lib/bundler/fetcher/downloader.rb index 2a4d13394e..2eac6e7975 100644 --- a/lib/bundler/fetcher/downloader.rb +++ b/lib/bundler/fetcher/downloader.rb @@ -6,14 +6,15 @@ module Bundler HTTP_NON_RETRYABLE_ERRORS = [ SocketError, Errno::EADDRNOTAVAIL, + Errno::ENETDOWN, Errno::ENETUNREACH, Gem::Net::HTTP::Persistent::Error, + Errno::EHOSTUNREACH, ].freeze HTTP_RETRYABLE_ERRORS = [ Gem::Timeout::Error, EOFError, - Errno::ENETDOWN, Errno::EINVAL, Errno::ECONNRESET, Errno::ETIMEDOUT, @@ -22,7 +23,6 @@ module Bundler Gem::Net::HTTPHeaderSyntaxError, Gem::Net::ProtocolError, Zlib::BufError, - Errno::EHOSTUNREACH, ].freeze attr_reader :connection