curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Adding/removing handles to the multi_handle produces unexpected result of curl_multi_perform

From: Patrick Schlangen via curl-library <curl-library_at_cool.haxx.se>
Date: Fri, 27 Sep 2019 17:48:30 +0200

> Am 27.09.2019 um 17:26 schrieb Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>:
>
> Not sure if this is what happens for you, but if in this case the newly added transfers fails really early, the first curl_multi_perform() call with the new transfer will get a zero back in running_handles and this loop will stop.
>

Another reason to move the multi_perform to the suggested location in my previous mail. That way you would still read and process the transfer results.

Patrick

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-09-27