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: Stoppable curl_easy_perform ?

From: Christopher Head via curl-library <curl-library_at_cool.haxx.se>
Date: Mon, 07 Oct 2019 18:30:05 -0700

How would this work with multi? A multi has a built in share, so presumably one could stop an easy in a multi if that share had an appropriate locking setup. But what would be the expected behaviour then? Should it be (1) a stop call causes application code to regain control from curl_multi_perform promptly, but without damaging any of the other easies, or (2) the stop call aborts one easy, and only aborting *all* the easies guarantees control returned to the application promptly? Or something else entirely?

If the expected behaviour is (1), it seems that curl_multi_stop should be a thing, and then really it ought to be possible to stop a curl_multi_perform without damaging *any* of its easies, and perhaps then resume it (and all of its easies) later.

-- 
Christopher Head
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2019-10-08