mirror of
https://github.com/ruby/ruby.git
synced 2025-08-25 05:55:46 +02:00
[rubygems/rubygems] Add Errno::ENETDOWN and Errno::EHOSTUNREACH to non retryable errors
Connection errors as well, so useless to retry.
d2d211651a
This commit is contained in:
parent
35dd2b2994
commit
d5b4b59500
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue