cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Loosing connection on iOS hangs request

From: Cédric Deltheil <cedric_at_moodstocks.com>
Date: Wed, 25 Nov 2015 14:06:58 +0100

On Tue, Nov 24, 2015, at 01:23 PM, Vincas.Razma_at_bentley.com wrote:
> >>
> >> >Which DNS resolver?
> >> How do I check that?
> >
> >curl --version (or curl_version/curl_version_info) will say.
>
> culr_version() output is "libcurl/7.37.0 OpenSSL/1.0.1p zlib/1.2.8"

You can also check if libcurl was built with async DNS via:

    curl_version_info_data *info = curl_version_info(CURLVERSION_NOW);
    printf("async DNS: %d\n", !!(info->features &
    CURL_VERSION_ASYNCHDNS));

(see: http://curl.haxx.se/libcurl/c/curl_version_info.html)

    
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-11-25