cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: 1st cb of XFERINFOFUNCTION has dltotal from previous perform!

From: Mohammad_AlSaleh <ce.mohammad.alsaleh_at_gmail.com>
Date: Mon, 12 Jan 2015 12:21:17 +0200

On Mon, Jan 12, 2015 at 10:24:21AM +0100, Daniel Stenberg wrote:
> On Mon, 12 Jan 2015, Mohammad_AlSaleh wrote:
>
> >If I reuse a handle to do different transfers with different
> >sizes. (Same URL, different ranges in my case). dltotal is not
> >guaranteed to to be either the new transfer size or zero. In fact,
> >the value seems to be left-over from the previous transfer before
> >it's updated.
> >
> >Is this a bug? Or expected behavior.
>
> Sounds like a bug to me. Can you help us reproduce the case?
>

The (summarized) output of the attached use-case:

transfer_size=524288, dltotal=0, dlnow=0
.
.
transfer_size=524288, dltotal=0, dlnow=0
transfer_size=524288, dltotal=524288, dlnow=2401
.
.
transfer_size=524288, dltotal=524288, dlnow=524288
transfer_size=262144, dltotal=524288, dlnow=0
.
.
ransfer_size=262144, dltotal=524288, dlnow=0
transfer_size=262144, dltotal=262144, dlnow=2396
.
.
transfer_size=262144, dltotal=262144, dlnow=262144

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

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

  • text/x-c attachment: bug.c
Received on 2015-01-12