cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Responsivenes during connection?

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 11 Jan 2005 21:22:24 +0100 (CET)

On Tue, 11 Jan 2005, Gabriel wrote:

> The multi interface works great, except it's blocking on the first call to
> perform() - while doing the DNS lookup, I guess. After that, I can poll it
> and it behaves as expected. In practice, my (engine drawn) mouse pointer
> freezes during that call, which is not nice.
>
> Is there a way to make the call more responsive, without resorting to
> threads?

The "block" is indeed very likely to be the DNS lookup, and the only really
good way to avoid that is to install c-ares[*] and build libcurl to use that
for name resolving.

[*] = http://daniel.haxx.se/projects/c-ares/

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2005-01-11