curl-library
Re: curl_multi_perform semantics of running_handles
Date: Tue, 14 Feb 2017 20:14:39 +0100 (CET)
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.htmlReceived on 2017-02-14