curl / Mailing Lists / curl-library / Single Mail


Re: Wait for a response using curl_multi_wait

From: Daniel Stenberg <>
Date: Thu, 22 Mar 2018 16:16:05 +0100 (CET)

On Wed, 21 Mar 2018, Richard Copley wrote:

> Probably a stupid question, but in the example I was talking about, where
> does the socket returned by connect() fit in? After the first SYN packet has
> been sent, and before the SYN/ACK arrives, can't curl wait on that socket?

Yes it can and it does. The typical no-socket gap in time is before that
socket is created, when libcurl resolves a host name in a separate thread.

Received on 2018-03-22