curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

CURLOPT_LOW_SPEED_TIME and CURLOPT_LOW_SPEED_LIMIT

From: James Read via curl-library <curl-library_at_cool.haxx.se>
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