cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: PROGRESSFUNCTION does not work as described

From: NSRT Mail account. <joecool22us_at_yahoo.com>
Date: Thu, 13 Jun 2013 14:59:43 -0700 (PDT)

How about:

When CURLOPT_NOPROGRESS is set to 0, this function will be called instead of its internal equivalent.

This function is called multiple times per second when data is being transfered, and roughly every second when not.

________________________________
 From: Daniel Stenberg <daniel_at_haxx.se>
To: NSRT Mail account. <joecool22us_at_yahoo.com>; libcurl development <curl-library_at_cool.haxx.se>
Sent: Friday, June 14, 2013 12:31 AM
Subject: Re: PROGRESSFUNCTION does not work as described
 

On Thu, 13 Jun 2013, NSRT Mail account. wrote:

>> with a frequent interval during operation (roughly once per second or sooner)
>
> Perhaps the meaning is ambiguous, but the documentation suggests that the callback is generally called once per second, and sometimes a little bit more. Meaning the expectation is that if an operation takes 100 seconds, the callback will be called 100 times, or 100 times plus a small percentage.

I don't think the calling frequency is a problem. I think the documentation can be improved, indeed. The phrasing originates from the old days and it haven't kept up with the code changes.

Suggestions?

-- 
/ daniel.haxx.se

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-06-14