mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
[rubygems/rubygems] Make HTTP_ERRORS
list look like FAIL_ERRORS
list
bfa6770e39
This commit is contained in:
parent
c3bfce512b
commit
7fe1fc392e
1 changed files with 15 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue