cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_multi_perform - how to know if data is entirely sent.

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 20 May 2011 23:59:21 +0200 (CEST)

On Fri, 20 May 2011, swathi upadhyaya wrote:

> yes it works thank you. But will DEBUGFUNCTION slow down the performance of
> the application?

I doubt it'll be any noticable difference.

> Also i tried using
>
> curl_easy_getinfo(curl, CURLINFO_SIZE_UPLOAD, &sentbytes);
>
> inside while loop and then compare the value with actual bytes to be sent .
> This also seems to work.

Right, but it (CURLINFO_SIZE_UPLOAD) has the downside that it isn't actually
documented to work until after a transfer so I'm not sure we can guarantee
that it'll always work even in a distant future.

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