curl / Mailing Lists / curl-library / Single Mail

curl-library

RE: Wait for a response using curl_multi_wait

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 20 Mar 2018 23:50:23 +0100 (CET)

On Tue, 20 Mar 2018, Cunningham, Joel wrote:

> curl_multi_wait() has been particularly hard to integrate with in a manner
> which doesnąt unnecessarily sleep and end up in a tight loop. What Iąve
> found is the main issue is a lack of information about if any waiting was
> actually done.

Yeah.

When we added curl_multi_wait() to offer a simpler API, we clearly missed out
on exactly that detail and it unfortunately makes the function hard to use in
an effective way. And not that easy and convenient as I wanted it to be and
which was the original plan.

Let's say we would introduce an improved version of this function. How would
you propose its API would work to reduce the current annoyance as much as
possible?

   curl_multi_wait_done_again() (yes, the name can also be discussed)

-- 
  / daniel.haxx.se

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-03-20