diff --git a/rust/build/in_process.rs b/rust/build/in_process.rs index c1aa583f9c..4d6ec38613 100644 --- a/rust/build/in_process.rs +++ b/rust/build/in_process.rs @@ -861,8 +861,8 @@ fn cached_download( data } -/// Maximum number of HTTP attempts (one initial + this many retries on transient errors). -const MAX_RETRIES: u32 = 3; +/// Maximum retries after the initial HTTP attempt for transient errors. +const MAX_RETRIES: u32 = 5; /// Download `url` with bounded retries on transient network errors. Backoff is /// exponential starting at 1s. 4xx responses fail fast; 5xx and connect/read diff --git a/rust/build/out_of_process.rs b/rust/build/out_of_process.rs index c0a9dd3050..4d7ba889ea 100644 --- a/rust/build/out_of_process.rs +++ b/rust/build/out_of_process.rs @@ -553,8 +553,8 @@ fn cached_download( data } -/// Maximum number of HTTP attempts (one initial + this many retries on transient errors). -const MAX_RETRIES: u32 = 3; +/// Maximum retries after the initial HTTP attempt for transient errors. +const MAX_RETRIES: u32 = 5; /// Download `url` with bounded retries on transient network errors. Backoff is /// exponential starting at 1s. 4xx responses fail fast; 5xx and connect/read