curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_multi_perform semantics of running_handles

From: corey kasten <coreykasten_at_gmail.com>
Date: Tue, 14 Feb 2017 11:24:42 -0800

thanks!

On Tue, Feb 14, 2017 at 11:14 AM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Tue, 14 Feb 2017, corey kasten wrote:
>
> does curl_multi_perform return immediately after scheduling the transfer,
>> and always return with running_handles=1, or can it return with 0
>> indicating that the transfer didn't start yet even though it's been added
>> (i.e it's not "running yet"), or can it return with 0 indicating the
>> transfer was started AND completed before curl_multi_perform returned?
>>
>
> It can return 1, meaning that there's one transfer "alive" that hasn't
> completed yet. There's no real definition for "alive" other than that the
> transfer has not reached its end state.
>
> It can also return 0, as if the transfer is already completed. Like for
> example it hit an error condition really early and just bailed out.
>
> It cannot be 0 and still have an unfinished transfer in there.
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
> Etiquette: https://curl.haxx.se/mail/etiquette.html

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