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: Fri, 23 Mar 2018 09:43:11 +0100 (CET)

On Tue, 20 Mar 2018, Richard Copley wrote:

> I might have misunderstood you. If curl_multi_wait returns with numfds=0,
> then there is no point trying to read the data.

When curl_multi_wait() returns, you should call curl_multi_perform() no matter
what numfds says though since there are also timeouts involved that aren't
reflected in numfds.

(Barring the busy-loop problem already being discussed that is.)

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