cURL / Mailing Lists / curl-library / Single Mail


Re: curl/c-ares problem with a chroot'ed program

From: Daniel Stenberg <>
Date: Thu, 5 Feb 2004 13:55:23 +0100 (CET)

*** This mailing list is moving ***
*** ***
On Wed, 4 Feb 2004, codemastr wrote:

(I'm CC'ing the old list)

> Ok here's the problem. libcurl calls ares_init() in Curl_addrinfo().

I believe we can call ares_init() from curl_easy_init() instead, and re-use
the same ares handle during the entire curl handle lifetime. Then it would
only read that file each time a new curl handle is created.

If you want a handle that can survive individual curl handles, I suggest we
add that to the share interface, either by bundling it in the DNS share data
or by providing a separate share entity for it.

Adding global data is not a good idea, imho.

    Daniel Stenberg -- --
   [[ Do not send mails to this email address. They won't reach me. ]]
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
Received on 2004-02-05