Le 25 nov. 2013 à 14:04, Stefan Rogin <[email protected]> a écrit :
> Curl was built with C-ares support, and I've tested just to be sure: > curl_version_info_data *data = curl_version_info(CURLVERSION_NOW); > cout<<endl<<"Curl version: "<< data->version <<endl > <<"AsyncDNS: "<<( data->features | CURL_VERSION_ASYNCHDNS ? > "YES" : "NO" ) <<endl; > //output: Curl version: 7.30.0 \n AsyncDNS: YES Are you using a recent enough version of c-ares? I can see that this feature is turned off[1] if c-ares < 1.7.4. PS : for the record the CURL_VERSION_ASYNCHDNS flag is enabled when curl is built with c-ares (--enable-ares) *or* threaded resolver (--enable-threaded-resolver): see [2] and [3]. Cédric [1]: https://github.com/bagder/curl/blob/f77e89c5d20db09eaebf378ec036a7e796932810/lib/asyn-ares.c#L604 [2]: https://github.com/bagder/curl/blob/f77e89c5d20db09eaebf378ec036a7e796932810/lib/version.c#L269 [3]: https://github.com/bagder/curl/blob/f77e89c5d20db09eaebf378ec036a7e796932810/lib/curl_setup.h#L541 ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
