curl-library
Re: Reducing the number of DNS queries in the multi handle.
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 26 Nov 2008 13:57:17 +0100 (CET)
Date: Wed, 26 Nov 2008 13:57:17 +0100 (CET)
On Wed, 26 Nov 2008, Jeff Pohlmeyer wrote:
>> No, there's no dedicated way for this. When data is delivered is pretty
>> much your only way to know I think.
>
> What about a curl_sockopt_callback, wouldn't that get called right after the
> name resolve (but before the http request)?
Ah, good thinking! Yes that would be a good indicator that the TCP connection
is done and thus the resolve has completed.
-- / daniel.haxx.seReceived on 2008-11-26