Skip to content

Commit

Permalink
usingcurl/transfers/rate-limiting.md: clarify the algo
Browse files Browse the repository at this point in the history
It uses an average per several seconds, not the entire transfer
  • Loading branch information
bagder committed Dec 15, 2023
1 parent 259f128 commit 1925187
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions usingcurl/transfers/rate-limiting.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ To make curl not download data any faster than 200 kilobytes per second:

curl https://example.com/ --limit-rate 200K

The given limit is the maximum *average speed* allowed, counted during the
entire transfer. It means that curl might use higher transfer speeds in short
bursts, but over time it uses no more than the given rate.
The given limit is the maximum *average speed* allowed during a period of
several seconds. It means that curl might use higher transfer speeds in short
bursts, but over time it averages to no more than the given rate.

Also note that curl never knows what the maximum possible speed isit will
simply go as fast as it can and is allowed. You may know your connection's
maximum speed, but curl does not.
curl does not know what the maximum possible speed isit will simply go as
fast as it can and is allowed. You might know your connection's maximum speed,
curl does not.

0 comments on commit 1925187

Please sign in to comment.