summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <[email protected]>2025-06-17 20:38:45 +0200
committerHiroshi SHIBATA <[email protected]>2025-06-23 11:07:01 +0900
commit7fe1fc392e549fa180a5a60b9135ca16f7976f0d ()
tree497ad60308b93bdbc086d5aea8d50383951e7604
parentc3bfce512baf6d0427216ea2ae24b7f191dfebee (diff)
[rubygems/rubygems] Make `HTTP_ERRORS` list look like `FAIL_ERRORS` list
https://.com/rubygems/rubygems/commit/bfa6770e39
-rw-r--r--lib/bundler/fetcher.rb19
1 files changed, 15 insertions, 4 deletions
@@ -73,10 +73,21 @@ module Bundler
end
HTTP_ERRORS = [
- Gem::Timeout::Error, EOFError, SocketError, 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
# Exceptions classes that should bypass retry attempts. If your password didn't work the