curl-and-python
Re: DNS lookup question
Date: Tue, 19 Jan 2010 19:47:11 +0100 (CET)
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-pythonReceived on 2010-01-19