cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Why does ultotal stay at 0 in progress callback function?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 19 Mar 2011 11:04:36 +0100 (CET)

On Fri, 18 Mar 2011, Saqib Ali wrote:

>>> Does anyone know why my ultotal is staying at 0? It should be the size of
>>> the uploaded file. The file is successfully transferred.
>>
>> No, I don't know. It sounds wrong.
>
> Ok, I was only partially incorrect in my original question. The ultotal
> doesn't stay at 0. It does go up to the correct value. But it *does* start
> at zero.

You mean that a few calls are made first where it is zero and then it suddenly
bumps up to become the correct value?

Yes, that's actually how it will behave in many cases. There may be ways to
improve this in libcurl but right now you should just take this into account.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-03-19