mirror of
https://github.com/curl/curl.git
synced 2026-08-25 19:13:34 +03:00
getparam: make --rate accept "number of units"
Do no more than 5 transfers per 15 seconds with "5/15s" or limit it to 3 transfers per 4 hours with "3/4h" etc. Previously it would always only work with a single time unit. Ref: #14242 Closes #14245
This commit is contained in:
parent
2d8464c4cb
commit
b80798c24d
2 changed files with 26 additions and 0 deletions
|
|
@ -40,3 +40,7 @@ more than 1000 per second, it instead runs unrestricted.
|
|||
|
||||
When retrying transfers, enabled with --retry, the separate retry delay logic
|
||||
is used and not this setting.
|
||||
|
||||
Starting in version 8.10.0, you can specify number of time units in the rate
|
||||
expression. Make curl do no more than 5 transfers per 15 seconds with "5/15s"
|
||||
or limit it to 3 transfers per 4 hours with "3/4h". No spaces allowed.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue