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

Re: Simulating network throttling

From
Bryan Turner <bturner@atlassian.com>
Date
Jun 16, 2021, 04:59 UTC
Message-ID
<CAGyf7-HyUHJacvpwx6R+_hCVsK_t3F1mQ++2_4-NeJWB9uUjdA@mail.gmail.com>
In-Reply-To
<65b4040c-2a9c-7d49-43ce-dad7d5a9c62d@gmail.com>
On Tue, Jun 15, 2021 at 9:56 PM Bagas Sanjaya <bagasdotme@gmail.com> wrote:
Show 10 quoted lines
>
> Hi,
>
> I would like to test my Git repository in case the network is throttled
> (that is the network speed is reduced from its full speed). For example,
> I would like to test git clone under maximum download speed of 9.6 KB/s
> (GPRS speed).
>
> I know how to test for throttling in browser, but since Git is
> command-line application, is there any way to simulate network throttling?

I've had some luck using toxiproxy[1] to MITM the connection, at least over plain HTTP. It's worth noting a warning brian m. carlson has given others in the past about this sort of thing, though, which is that many MITM solutions are not fully transparent, which can result in protocol errors and other abnormal behaviors from Git. Your mileage may vary.

[1] https://github.com/shopify/toxiproxy
Previous: Bagas SanjayaNext: brian m. carlson
Message 2 of 4 in “Simulating network throttling”
  1. Bagas SanjayaJun 16, 2021
  2. Bryan TurnerJun 16, 2021
  3. brian m. carlsonJun 16, 2021
  4. Jeff KingJun 17, 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.