curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: bypassing name resolve hangs

From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Mon, 23 Sep 2019 15:33:46 +0200 (CEST)

On Mon, 23 Sep 2019, Dan Fandrich via curl-library wrote:

> I wrote a test program that resolves a name found in /etc/hosts and it does
> 70K lookups per second. If you disable curl's threaded resolver and
> configure the system resolver to only look in /etc/hosts (and not to go to
> the network for anything) then I would expect that would eliminate
> getaddrinfo() as the bottleneck.

Alternatively, you use CURLOPT_RESOLVE to specify the address yourself for the
host name(s) you're using.

-- 
  / daniel.haxx.se | Get the best commercial curl support there is - from me
                   | Private help, bug fixes, support, ports, new features
                   | https://www.wolfssl.com/contact/
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2019-09-23