curl / Mailing Lists / curl-library / Single Mail


Re: Wait for a response using curl_multi_wait

From: Daniel Stenberg <>
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.)

Received on 2018-03-23