From: Ravi Mistry Date: Tue, 03 Nov 2026 19:05:58 GMT Subject: Re: [PATCH 2/4] http: add exponential backoff without Retry-After Message-ID: In-Reply-To: Junio C Hamano writes: > It somehow feels that the default value of 0 (immediate retry) does > not mesh well with exponential backoff. Will we keep retrying > immediately after failing until we run out of retries? Right, when http.retryAfter is 0 (and no Retry-After header is sent), every retry happens immediately without waiting. I kept 0 as the default to preserve the existing behavior from 640657ffd0 (and its t5584 tests). I made this explicit in the http.retryAfter and http.maxRetryTime documentation in v2. > Or would it suffice to pass (http_max_retries - rate_limit_retries) > in place of the 'attempt' parameter? > > Not complaining. Just making an observation. Passing (http_max_retries - rate_limit_retries) here and only introducing 'attempt' in Patch 4/4 is much cleaner, so I updated v2 to do that. Thanks!