diff --git a/src/utilities/downloads_backend.jl b/src/utilities/downloads_backend.jl index 88e1b87719..7b6d3a9b23 100644 --- a/src/utilities/downloads_backend.jl +++ b/src/utilities/downloads_backend.jl @@ -113,7 +113,7 @@ function _http_request(backend::DownloadsBackend, request::Request, response_str end get_response_with_retry = retry( - get_response; check=check, delays=AWSExponentialBackoff(; max_attempts=4) + get_response; check=check, delays=AWSExponentialBackoff(; max_attempts=10) ) try get_response_with_retry() diff --git a/src/utilities/request.jl b/src/utilities/request.jl index c51d7cf33d..ec6dccf4ab 100644 --- a/src/utilities/request.jl +++ b/src/utilities/request.jl @@ -253,7 +253,7 @@ function _http_request(http_backend::HTTPBackend, request::Request, response_str end get_response_with_retry = retry( - get_response; check=check, delays=AWSExponentialBackoff(; max_attempts=4) + get_response; check=check, delays=AWSExponentialBackoff(; max_attempts=10) ) try diff --git a/test/issues.jl b/test/issues.jl index a5180b5bb1..877b401a43 100644 --- a/test/issues.jl +++ b/test/issues.jl @@ -210,7 +210,7 @@ try end end - @testset "Fail all 4 attempts then throw" begin + @testset "Fail all 10 attempts then throw" begin err_t = if AWS.DEFAULT_BACKEND[] isa AWS.HTTPBackend HTTP.IOError else @@ -218,7 +218,7 @@ try end io = IOBuffer() - apply(_incomplete_patch(; data=data, num_attempts_to_fail=4)) do + apply(_incomplete_patch(; data=data, num_attempts_to_fail=10)) do params = Dict("response_stream" => io) @test_throws err_t S3.get_object(bucket, key, params; aws_config=config)