curl / Mailing Lists / curl-library / Single Mail

curl-library

Semantics of CURLINFO_SIZE_DOWNLOAD_T

From: Johan Gill via curl-library <curl-library_at_cool.haxx.se>
Date: Tue, 31 Oct 2017 11:47:15 +0100

Hi, I am experiencing some strange results from using
CURLINFO_SIZE_DOWNLOAD_T, with two printouts differing when I expect them
to be the same. Before I go into details and try producing a minimal
example, I figured I should check some assumptions first.

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?

/Johan Gill

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