Skip to content

Commit

Permalink
fallback to excon 1.0+ error retry error settings (#728)
Browse files Browse the repository at this point in the history
* fallback to excon 1.0+ error retry error settings

* bump to fog-core ~> 2.6 to get excon ~> 1.0
  • Loading branch information
geemus authored Oct 25, 2024
1 parent 1acc1a3 commit d2627c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion fog-aws.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'shindo', '~> 0.3'

spec.add_dependency 'base64', '~> 0.2.0'
spec.add_dependency 'fog-core', '~> 2.1'
spec.add_dependency 'fog-core', '~> 2.6'
spec.add_dependency 'fog-json', '~> 1.1'
spec.add_dependency 'fog-xml', '~> 0.1'

Expand Down
5 changes: 1 addition & 4 deletions lib/fog/aws/storage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ class Storage < Fog::Service

DEFAULT_CONNECTION_OPTIONS = {
retry_limit: 5,
retry_interval: 1,
retry_errors: [
Excon::Error::Timeout, Excon::Error::Socket, Excon::Error::Server
]
retry_interval: 1
}

MIN_MULTIPART_CHUNK_SIZE = 5242880
Expand Down

0 comments on commit d2627c2

Please sign in to comment.