curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Semantics of CURLINFO_SIZE_DOWNLOAD_T

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 31 Oct 2017 22:04:24 +0100 (CET)

On Tue, 31 Oct 2017, Johan Gill via curl-library wrote:

> Quoting the documentation for CURLINFO_SIZE_DOWNLOAD_T: "The amount is only
> for the latest transfer and will be reset again for each new transfer."
>
> What does that mean when one uses the multi interface, and has a loop with
> curl_multi_wait()-curl_multi_perform()? Will the value reset for the
> underlying easy handles for each curl_multi_perform() call, or can I just
> read the value once when I received everything to get the total payload
> size?

The latest transfer done - using that easy handle. So you can keep querying
that easy handle until you use it to do another transfer...

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2017-10-31