cURL / Mailing Lists / curl-library / Single Mail


Re: Is it normal to the progress callback be called once again after returning non-zero value?

From: Daniel Stenberg <>
Date: Sat, 14 Jun 2014 23:42:40 +0200 (CEST)

On Sat, 14 Jun 2014, Ray Satiro wrote:

>> think we should call the progress callback again. Basically that could lead
>> to the similar problem: return an error from another callback and yet you
>> get the progress callback called again.
> Ok that works on the samples. Generally speaking though if a status !=
> CURLE_OK is passed to a done handler is it possible for that done handler to
> return a result of CURLE_OK?

Yes, that's up to the done handler.

> I'm trying to figure out if there will still be a scenario where
> Curl_pgrsDone() could be called with a bad status and whether or not it's
> permissible in that case.

It is for example possible in the FTP case where the problem isn't considered
to be bad enough to tear down the control channel. That would not include

List admin:
Received on 2014-06-14