git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] add http.maxReceiveSpeed to limit git-receive-pack receiving speed

From
Jeff King <peff@peff.net>
Date
Aug 20, 2021, 18:11 UTC
Message-ID
<YR/wbWhei0PPLSgX@coredump.intra.peff.net>
In-Reply-To
<xmqq4kbl2sre.fsf@gitster.g>
On Thu, Aug 19, 2021 at 11:28:53AM -0700, Junio C Hamano wrote:
Show 7 quoted lines
> > https protocol, and only supports libcurl 7.15.5 and above.
> 
> We are likely be raising the floor versions of libcURL to 7.16.0 or
> even 7.19.4 soonish.  It probably would make it easier to allow it
> unconditionally (otherwise you'd probably need to implement error or
> warning messages when configuration is given but the libcURL version
> used is too old, etc.).
Yeah, I agree that if we can drop the conditional totally, we should.

If we do need to make it conditional, I think there was a preference for shifting to checking the actual option constants, like:

  #ifdef CURLOPT_MAX_RECV_SPEED_LARGE
  ...ok, we have it...
  #endif
The rest of your comments all seemed quite reasonable to me.

As a general feature, IMHO speed-limiting is best done outside of application-level tools like Git (and instead done via proxies or kernel network config). But since we are not building the feature ourselves, but rather just plugging our config to curl's feature, I don't have any problem with it here.

-Peff
Previous: Junio C HamanoNext: Randall S. Becker
Message 5 of 12 in “add http.maxReceiveSpeed to limit git-receive-pack receiving speed”
  1. add http.maxReceiveSpeed to limit git-receive-pack receiving speedXia XiaoWen, Aug 19, 2021
  2. Bagas SanjayaAug 19, 2021
  3. Xiaowen XiaAug 19, 2021
  4. Junio C HamanoAug 19, 2021
  5. Jeff KingAug 20, 2021
  6. Randall S. BeckerAug 20, 2021
  7. Xiaowen XiaAug 21, 2021
  8. Junio C HamanoAug 21, 2021
  9. Xiaowen XiaAug 21, 2021
  10. http: add http.maxReceiveSpeed to limit receiving speed of "git-receive-pack"chenan.xxw, Aug 23, 2021
  11. Jiang XinAug 24, 2021
  12. Xiaowen XiaAug 31, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.