]> git.ipfire.org Git - thirdparty/curl.git/commit
c-ares: really lazy init channel
authorStefan Eissing <stefan@eissing.org>
Thu, 24 Apr 2025 10:18:33 +0000 (12:18 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 24 Apr 2025 12:07:01 +0000 (14:07 +0200)
commit7bf576064c21fe0bb03a67c382d692ebbb9e3426
tree1c5e226b21cf26deb78e8da853db6912e26c9072
parent437c72fbba63d73614c29935771c85f3e8460a77
c-ares: really lazy init channel

Only initialize the c-ares channel when we start resolving and not
alreads when the application sets `CURLOPT_DNS_SERVERS` and friends.

Creating an ares channel takes considerable time and when we have the
DNS information for a transfer already cached, we do not need it.

Closes #17167
lib/asyn-ares.c
lib/asyn.h
lib/easy.c
lib/setopt.c