I don t know how --retry-max-time
calculated.
If I download a file file.txt
:
curl --max-time 10 --retry 3 --retry-delay 5 --retry-max-time 32 http://www.site.com/download/file.txt
[ 0- 2]
It takes2s
to download50%
of the file, and no speed any more.[ 2-10]
It waits for another8s
, still no speed, timeout, will retry[10-15]
It waits for5s
before retry #1[15-25]
Still no speed, will retry[25-30]
It waits for5s
before retry #2[30-34]
It takes4s
to download33%
of the file, and no speed any more.[34-40]
It waits for another6s
, still no speed, timeout
curl
此时此点的停业(40s
)?
何时开始并停止<代码>检索时间/代码>?
--retry-max-time <seconds>
The retry timer is reset before the first transfer attempt. Retries will be done as usual (see --retry) as
long as the timer hasn t reached this given limit. Notice that if the timer hasn t reached the limit, the
request will be made and while performing, it may take longer than this given time period. To limit a single
request´s maximum time, use -m, --max-time. Set this option to zero to not timeout retries. (Added in
7.12.3)