curl-and-python

Re: DNS lookup question

From: my name <gm41lu53r_at_gmail.com>
Date: Tue, 19 Jan 2010 14:08:17 -0500

Thank you for the response. So for the urltretriever-multi example, the
whole bit about signals can be removed since my version of libcurl is
complied with c-ares?

On Tue, Jan 19, 2010 at 1:47 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Tue, 19 Jan 2010, my name wrote:
>
> I'm confused as to how CURLOPT_NOSIGNAL affects DNS lookups.
>>
>
> If you really want to know and figure out libcurl details, I recommend you
> using the curl-library list which is where the libcurl hackers and
> developers hang out.
>
>
> If it's set to 1 it uses c-ares, otherwise it doesn't?
>>
>
> No. If you disable signals, no signals will be used by libcurl. Signals are
> only used if libcurl is built to use one the standard synchronous libc
> resolvers.
>
>
> I had it to set to 1 and it seemed like I was getting alot of unresolved
>> hosts.
>>
>
> That's not in itself controlled by just option, but this option controls
> how the timeout options work on libcurls with a synchronous resolver.
>
>
> Also, I'm making ~1000 connections, is there anything I need to look out
>> for DNS wise?
>>
>
> You probably want your libcurl built with c-ares then so that name resolves
> will be done asynchronously.
>
> --
>
> / daniel.haxx.se
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
>

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2010-01-19