We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 041beb7 commit 869d97cCopy full SHA for 869d97c
http.c
@@ -2409,6 +2409,8 @@ static int http_request_reauth(const char *url,
2409
2410
if (ret == HTTP_RATE_LIMITED) {
2411
/* Handle rate limiting with retry logic */
2412
+ int retry_attempt = http_max_retries - rate_limit_retries + 1;
2413
+
2414
if (rate_limit_retries <= 0) {
2415
/* Retries are disabled or exhausted */
2416
if (http_max_retries > 0) {
@@ -2419,8 +2421,6 @@ static int http_request_reauth(const char *url,
2419
2421
return HTTP_ERROR;
2420
2422
}
2423
- int retry_attempt = http_max_retries - rate_limit_retries + 1;
-
2424
trace2_data_intmax("http", the_repository, "http/429-retry-attempt",
2425
retry_attempt);
2426
0 commit comments