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: Tue, 10 Jun 2014 00:01:53 +0200 (CEST)

On Sat, 7 Jun 2014, Ray Satiro wrote:

> Returning a non-zero value from this callback will cause libcurl to abort
> the transfer and return CURLE_ABORTED_BY_CALLBACK. That implies to me at
> least that a progress function would not be called again if it aborts.

Thanks a lot for the detailed stack trace, it made me figure out a lot and I
believe the attached patch is the correct fix.

I'd be happy if either one of you could try it and verify that it does what I
hope it does - I have not ran the test recipe myself!

-- 
  / daniel.haxx.se


-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2014-06-10