From: Junio C Hamano <gitster@pobox.com>
To: "Ravi Mistry via GitGitGadget" <gitgitgadget@gmail.com>
Cc: git@vger.kernel.org,
Vaidas Pilkauskas <vaidas.pilkauskas@shopify.com>,
Patrick Steinhardt <ps@pks.im>,
"brian m. carlson" <sandals@crustytoothpaste.net>,
Ravi Mistry <rmistry@google.com>
Subject: Re: [PATCH v4 0/5] http: exponential backoff, configurable status codes, and post_rpc() retries
Date: Tue, 24 Nov 2026 15:04:04 -0800 [thread overview]
Message-ID: <xmqqzeuxj0gr.fsf@gitster.g> (raw)
In-Reply-To: <pull.2287.v4.git.1795103883.gitgitgadget@gmail.com> (Ravi Mistry via GitGitGadget's message of "Thu, 19 Nov 2026 15:57:58 +0000")
"Ravi Mistry via GitGitGadget" <gitgitgadget@gmail.com> writes:
> Commit 640657ffd0 (http: add support for HTTP 429 rate limit retries,
> 2026-03-17) added HTTP 429 retry support using http.maxRetries,
> http.retryAfter, and http.maxRetryTime.
> ...
> This 5-patch series addresses all four gaps:
>
> * Patch 1/5 fixes the off-by-one retry count bug and extracts Retry-After
> in finish_active_slot() before Trace2 logging runs.
> * Patch 2/5 doubles http.retryAfter on each subsequent retry attempt
> (capped at http.maxRetryTime) when Retry-After is absent.
> * Patch 3/5 adds http.retryStatusCodes (and GIT_HTTP_RETRY_STATUS_CODES),
> defaulting to "429", so environments can opt into retrying codes like
> "429,502,503,504".
> * Patch 4/5 extracts a shared http_retry_wait() helper and extends retry
> support in post_rpc() to read-only services ("git-upload-pack" and
> "git-upload-archive") without retrying "git-receive-pack" (git push),
> while fixing a missing Content-Encoding: gzip header on retry.
> * Patch 5/5 changes the default of http.retryAfter from 0 to 10 seconds so
> Git does not immediately hammer a rate-limiting server when no
> Retry-After header is provided.
>
> Prior discussions:
>
> * https://lore.kernel.org/git/20201012184806.166251-3-smcallis@google.com/
> * https://lore.kernel.org/git/pull.2008.v6.git.1773752435.gitgitgadget@gmail.com/
>
> Changes since v3 (thanks to Patrick Steinhardt for the review):
>
> * Patches 1/5, 3/5, 4/5: Un-indented shell case arms in
> t/lib-httpd/http-429.sh to match CodingGuidelines.
> * Patches 2/5, 4/5: Changed the retry attempt counter from int to size_t.
> * Patch 3/5: Documented in http.retryStatusCodes that providers are
> expected to return 429 when rate-limiting or overloaded, and that
> configuring additional status codes is a temporary workaround while
> underlying provider or proxy infrastructure is fixed.
> * Patch 4/5: Restricted retries in post_rpc() to read-only services
> ("git-upload-pack" and "git-upload-archive") so "git-receive-pack" (git
> push) is not retried, documented the retried request types in
> http.maxRetries, and added a test covering push.
> * Patch 5/5: Inspected the Retry-After header via curl_easy_header() when
> CURLINFO_RETRY_AFTER <= 0 so an explicit "Retry-After: 0" or past
> HTTP-date retries immediately instead of falling back to the 10-second
> default, restored the past HTTP-date test in t5584, and added a test for
> "Retry-After: 0".
Thanks. Even though I admit that http transport code is one of the
areas I am less comfortable working with, I tried to see if I can find
anything questionable. Thanks to your effort with Patrick's previous
reviews, I didn't spot much, which is good ;-)
next prev parent reply other threads:[~2026-11-24 23:04 UTC|newest]
Thread overview: 63+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-31 15:57 [PATCH 0/4] http: exponential backoff, configurable status codes, and post_rpc() retries Ravi Mistry via GitGitGadget
2026-10-31 15:57 ` [PATCH 1/4] http: fix retry count and Retry-After timing Ravi Mistry via GitGitGadget
2026-11-03 1:03 ` Junio C Hamano
2026-11-03 19:05 ` Ravi Mistry
2026-10-31 15:57 ` [PATCH 2/4] http: add exponential backoff without Retry-After Ravi Mistry via GitGitGadget
2026-11-03 13:21 ` Junio C Hamano
2026-11-03 19:05 ` Ravi Mistry
2026-10-31 15:57 ` [PATCH 3/4] http: add http.retryStatusCodes config option Ravi Mistry via GitGitGadget
2026-11-03 13:41 ` Junio C Hamano
2026-11-03 19:06 ` Ravi Mistry
2026-10-31 15:57 ` [PATCH 4/4] remote-curl: retry transient HTTP errors in post_rpc() Ravi Mistry via GitGitGadget
2026-11-03 14:47 ` Junio C Hamano
2026-11-03 18:57 ` [PATCH v2 0/4] http: exponential backoff, configurable status codes, and post_rpc() retries Ravi Mistry via GitGitGadget
2026-11-03 18:57 ` [PATCH v2 1/4] http: fix retry count and Retry-After timing Ravi Mistry via GitGitGadget
2026-11-03 18:57 ` [PATCH v2 2/4] http: add exponential backoff without Retry-After Ravi Mistry via GitGitGadget
2026-11-04 22:05 ` brian m. carlson
2026-11-05 0:10 ` Ravi Mistry
2026-11-05 17:45 ` Junio C Hamano
2026-11-05 22:32 ` brian m. carlson
2026-11-06 16:27 ` Ravi Mistry
2026-11-03 18:57 ` [PATCH v2 3/4] http: add http.retryStatusCodes config option Ravi Mistry via GitGitGadget
2026-11-03 20:56 ` Junio C Hamano
2026-11-03 18:57 ` [PATCH v2 4/4] remote-curl: retry transient HTTP errors in post_rpc() Ravi Mistry via GitGitGadget
2026-11-07 3:40 ` [PATCH v3 0/5] http: exponential backoff, configurable status codes, and post_rpc() retries Ravi Mistry via GitGitGadget
2026-11-07 3:40 ` [PATCH v3 1/5] http: fix retry count and Retry-After timing Ravi Mistry via GitGitGadget
2026-11-18 12:00 ` Patrick Steinhardt
2026-11-18 21:52 ` Ravi Mistry
2026-11-07 3:40 ` [PATCH v3 2/5] http: add exponential backoff without Retry-After Ravi Mistry via GitGitGadget
2026-11-18 12:00 ` Patrick Steinhardt
2026-11-18 21:53 ` Ravi Mistry
2026-11-07 3:40 ` [PATCH v3 3/5] http: add http.retryStatusCodes config option Ravi Mistry via GitGitGadget
2026-11-18 12:00 ` Patrick Steinhardt
2026-11-18 21:53 ` Ravi Mistry
2026-11-19 11:28 ` Patrick Steinhardt
2026-11-19 12:23 ` Ravi Mistry
2026-11-07 3:40 ` [PATCH v3 4/5] remote-curl: retry transient HTTP errors in post_rpc() Ravi Mistry via GitGitGadget
2026-11-18 12:01 ` Patrick Steinhardt
2026-11-18 21:53 ` Ravi Mistry
2026-11-07 3:40 ` [PATCH v3 5/5] http: default http.retryAfter to 10 seconds Ravi Mistry via GitGitGadget
2026-11-18 12:01 ` Patrick Steinhardt
2026-11-18 21:54 ` Ravi Mistry
2026-11-07 4:37 ` [PATCH v3 0/5] http: exponential backoff, configurable status codes, and post_rpc() retries Junio C Hamano
2026-11-10 3:58 ` Ravi Mistry
2026-11-19 15:57 ` [PATCH v4 " Ravi Mistry via GitGitGadget
2026-11-19 15:57 ` [PATCH v4 1/5] http: fix retry count and Retry-After timing Ravi Mistry via GitGitGadget
2026-11-24 22:23 ` Junio C Hamano
2026-11-19 15:58 ` [PATCH v4 2/5] http: add exponential backoff without Retry-After Ravi Mistry via GitGitGadget
2026-11-24 22:31 ` Junio C Hamano
2026-11-19 15:58 ` [PATCH v4 3/5] http: add http.retryStatusCodes config option Ravi Mistry via GitGitGadget
2026-11-24 22:44 ` Junio C Hamano
2026-11-25 15:13 ` Ravi Mistry
2026-11-19 15:58 ` [PATCH v4 4/5] remote-curl: retry transient HTTP errors in post_rpc() Ravi Mistry via GitGitGadget
2026-11-24 23:04 ` Junio C Hamano
2026-11-25 15:13 ` Ravi Mistry
2026-11-19 15:58 ` [PATCH v4 5/5] http: default http.retryAfter to 10 seconds Ravi Mistry via GitGitGadget
2026-11-24 23:04 ` Junio C Hamano [this message]
2026-11-25 17:48 ` [PATCH v5 0/5] http: exponential backoff, configurable status codes, and post_rpc() retries Ravi Mistry via GitGitGadget
2026-11-25 17:48 ` [PATCH v5 1/5] http: fix retry count and Retry-After timing Ravi Mistry via GitGitGadget
2026-11-25 17:48 ` [PATCH v5 2/5] http: add exponential backoff without Retry-After Ravi Mistry via GitGitGadget
2026-11-25 17:48 ` [PATCH v5 3/5] http: add http.retryStatusCodes config option Ravi Mistry via GitGitGadget
2026-11-25 17:48 ` [PATCH v5 4/5] remote-curl: retry transient HTTP errors in post_rpc() Ravi Mistry via GitGitGadget
2026-11-25 17:48 ` [PATCH v5 5/5] http: default http.retryAfter to 10 seconds Ravi Mistry via GitGitGadget
2026-11-25 19:04 ` [PATCH v5 0/5] http: exponential backoff, configurable status codes, and post_rpc() retries Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqzeuxj0gr.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=gitgitgadget@gmail.com \
--cc=ps@pks.im \
--cc=rmistry@google.com \
--cc=sandals@crustytoothpaste.net \
--cc=vaidas.pilkauskas@shopify.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.