cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 2 Jul 2014 23:55:21 +0200 (CEST)

On Wed, 2 Jul 2014, Ray Satiro wrote:

>> And should I keep using a flag to check if the callback was already called?
>
> My understanding is the behavior will be changed so that the progress
> callback will not be called again should it abort. There is a working
> solution but it is preliminary and headed towards the end of discussion if
> not there already. Daniel is on vacation so you should probably continue
> doing what you're doing for now.

Right, and even when we've merged the fix the existing behavior is still
present in older already releasted versions so you may want to use such a flag
anyway for a while...

I merged that fix right now, feel free to try out the git master/nightly build
do see that it behaves correctly.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2014-07-02