CURLOPT_LOW_SPEED_TIME and CURLOPT_LOW_SPEED_LIMIT
Date: Wed, 10 Jun 2020 03:27:00 +0100
Hi,
I am investigating using CURLOPT_LOW_SPEED_TIME and CURLOPT_LOW_SPEED_LIMIT
to speed up my web crawler. I am a little confused though by a comment in
the documentation. According to
https://curl.haxx.se/libcurl/c/CURLOPT_LOW_SPEED_TIME.html the following
code segment says:
/* abort if slower than 30 bytes/sec during 60 seconds */
curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, 60L);
curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, 30L);
What does abort if slower than 30 bytes/sec during 60 seconds mean? Is this
an average speed over any given 60 second period? Or will it abort after 60
seconds regardless? Note, I want it to abort after a given time period. Are
these the options for me?
James Read
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-06-10