cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_multi_wait

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 8 Oct 2012 15:01:45 +0200 (CEST)

On Mon, 8 Oct 2012, Mark Tully wrote:

> It looks like curl_multi_wait will wait for the full timeout value even when
> it has no easy handles in the multi handle (On MS Windows) and so no work is
> possible.
>
> Is this correct behaviour? If so, I will guard my call to it with a check on
> the # added easy handles first.

I think it is up to us to decide what a correct behaviour would be in this
case since we haven't yet released a version with curl_multi_wait... Whatever
we decide we should make sure it gets added to the man page.

Somehow I think it makes sense that it waits until there's action, and if
there's nothing to wait for waits the entire timeout period.

Or am I wrong?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-10-08