[rubygems/rubygems] Make HTTP_ERRORS list look like FAIL_ERRORS list

bfa6770e39
This commit is contained in:
David Rodríguez 2025-06-17 20:38:45 +02:00 committed by Hiroshi SHIBATA
parent c3bfce512b
commit 7fe1fc392e

View file

@ -73,10 +73,21 @@ module Bundler
end end
HTTP_ERRORS = [ HTTP_ERRORS = [
Gem::Timeout::Error, EOFError, SocketError, Errno::ENETDOWN, Errno::ENETUNREACH, Gem::Timeout::Error,
Errno::EINVAL, Errno::ECONNRESET, Errno::ETIMEDOUT, Errno::EAGAIN, EOFError,
Gem::Net::HTTPBadResponse, Gem::Net::HTTPHeaderSyntaxError, Gem::Net::ProtocolError, SocketError,
Gem::Net::HTTP::Persistent::Error, Zlib::BufError, Errno::EHOSTUNREACH Errno::ENETDOWN,
Errno::ENETUNREACH,
Errno::EINVAL,
Errno::ECONNRESET,
Errno::ETIMEDOUT,
Errno::EAGAIN,
Gem::Net::HTTPBadResponse,
Gem::Net::HTTPHeaderSyntaxError,
Gem::Net::ProtocolError,
Gem::Net::HTTP::Persistent::Error,
Zlib::BufError,
Errno::EHOSTUNREACH,
].freeze ].freeze
# Exceptions classes that should bypass retry attempts. If your password didn't work the # Exceptions classes that should bypass retry attempts. If your password didn't work the