Discussion:
Help: How to build curl library with asyncronous DNS resolver using --enable-threaded-resolver
siddeshwar
2012-10-31 11:21:30 UTC
Permalink
HI,

   I am trying to build and use libcurl 7.27v on linux with --enable-threaded-resolver support to have asynchronous DNS resolution. Curl not able to resolve the hostname and connect. But if I build the libcurl without --enable-threaded-resolver, its able to resolve the same host name and connect.

What are the things I need to take care while building with --enable-threaded-resolver option ? anything I am missing ?


I am using below configuration for building.


 --disable-debug \
 --disable-dict \
 --disable-ipv6 \
 --disable-ldap \
 --disable-static \
 --disable-telnet \
 --enable-file
\
--enable-threaded-resolver\
 --with-gnu-ld \
 --with-random=/dev/urandom \
 --without-ca-bundle \
 --without-libidn \
 --without-libssh2


  Thanks in advance,

Regards,
-Siddeshwar
Lijo Antony
2012-11-01 06:12:33 UTC
Permalink
Post by siddeshwar
HI,
I am trying to build and use libcurl 7.27v on linux with
--enable-threaded-resolver support to have asynchronous DNS resolution.
Curl not able to resolve the hostname and connect. But if I build the
libcurl without --enable-threaded-resolver, its able to resolve the same
host name and connect.
On Linux, I build libcurl with c-ares for asynchronous name resolution
and it works well. No idea about threaded resolver though.

-lijo
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Daniel Stenberg
2012-11-01 17:20:11 UTC
Permalink
Post by siddeshwar
   I am trying to build and use libcurl 7.27v on linux with
--enable-threaded-resolver support to have asynchronous DNS resolution. Curl
not able to resolve the hostname and connect. But if I build the libcurl
without --enable-threaded-resolver, its able to resolve the same host name
and connect.
What are the things I need to take care while building with
--enable-threaded-resolver option ? anything I am missing ?
You shouldn't need to do much else than providing that configure option. It
will do the rest on its own.

Which Linux is this? I'll admit I haven't personally tried the threaded
resolver in a while...
--
/ daniel.haxx.se
siddeshwar
2012-11-01 18:22:57 UTC
Permalink
Hi Daniel,
 
   Thanks for the update, I am using BSD 2.6.37 linux.
 
Regards,
-Siddeshwar



________________________________
From: Daniel Stenberg <***@haxx.se>
To: siddeshwar <***@yahoo.com>; libcurl development <curl-***@cool.haxx.se>
Sent: Thursday, November 1, 2012 10:20 AM
Subject: Re: Help: How to build curl library with asyncronous DNS resolver using --enable-threaded-resolver
Post by siddeshwar
   I am trying to build and use libcurl 7.27v on linux with --enable-threaded-resolver support to have asynchronous DNS resolution. Curl not able to resolve the hostname and connect. But if I build the libcurl without --enable-threaded-resolver, its able to resolve the same host name and connect.
What are the things I need to take care while building with --enable-threaded-resolver option ? anything I am missing ?
You shouldn't need to do much else than providing that configure option. It will do the rest on its own.

Which Linux is this? I'll admit I haven't personally tried the threaded resolver in a while...
--
/ daniel.haxx.se
siddeshwar
2012-11-02 13:59:43 UTC
Permalink
Hi,

   Is there any sample code  for the curl asynch DNS resolution c-ares/ threaded usage?

Thanks,
-Siddeshwar
 





________________________________
From: Daniel Stenberg <***@haxx.se>
To: siddeshwar <***@yahoo.com>; libcurl development <curl-***@cool.haxx.se>
Sent: Thursday, November 1, 2012 10:50 PM
Subject: Re: Help: How to build curl library with asyncronous DNS resolver using --enable-threaded-resolver
Post by siddeshwar
   I am trying to build and use libcurl 7.27v on linux with --enable-threaded-resolver support to have asynchronous DNS resolution. Curl not able to resolve the hostname and connect. But if I build the libcurl without --enable-threaded-resolver, its able to resolve the same host name and connect.
What are the things I need to take care while building with --enable-threaded-resolver option ? anything I am missing ?
You shouldn't need to do much else than providing that configure option. It will do the rest on its own.

Which Linux is this? I'll admit I haven't personally tried the threaded resolver in a while...
--
/ daniel.haxx.se
Lijo Antony
2012-11-04 06:56:28 UTC
Permalink
Hi,
Is there any sample code for the curl asynch DNS resolution c-ares/
threaded usage?
Choice of resolver is transparent to application. You don't need any
specific code, just need to build libcurl to use the desired resolver.

-lijo
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Daniel Stenberg
2012-11-04 22:55:40 UTC
Permalink
Post by Daniel Stenberg
Which Linux is this? I'll admit I haven't personally tried the threaded
resolver in a while...
I tried it now. Works just fine for me.
--
/ daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Loading...