version: rename c-ares-rr to asyn-rr

Works better if we later introduce another way to do the asynch RR
resolves (together with the threaded resolver) that does not use c-ares.

Closes #16090
This commit is contained in:
Daniel Stenberg 2025-01-26 12:23:33 +01:00
parent 5ce5c62662
commit e27abfe2f1
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
7 changed files with 11 additions and 11 deletions

View File

@ -2107,7 +2107,7 @@ curl_add_if("brotli" HAVE_BROTLI)
curl_add_if("gsasl" USE_GSASL)
curl_add_if("zstd" HAVE_ZSTD)
curl_add_if("AsynchDNS" USE_ARES OR USE_THREADS_POSIX OR USE_THREADS_WIN32)
curl_add_if("c-ares-rr" USE_ARES AND ENABLE_THREADED_RESOLVER)
curl_add_if("asyn-rr" USE_ARES AND ENABLE_THREADED_RESOLVER)
curl_add_if("IDN" (HAVE_LIBIDN2 AND HAVE_IDN2_H) OR
USE_WIN32_IDN OR
USE_APPLE_IDN)

View File

@ -5018,7 +5018,7 @@ if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
fi
if test "x$USE_ARES" = "x1" -a "$want_threaded_resolver" = "yes"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES c-ares-rr"
SUPPORT_FEATURES="$SUPPORT_FEATURES asyn-rr"
fi
if test "x$IDN_ENABLED" = "x1"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"

View File

@ -25,9 +25,9 @@ curl features **experimental** support for HTTPS RR.
HTTPS RR support. If c-ares is not included in the build, the HTTPS RR support
is limited to DoH.
`c-ares-rr` is listed as a feature in the `curl -V` output if c-ares is used
for additional resolves in addition to a "normal" resolve done with the
threaded resolver.
`asyn-rr` is listed as a feature in the `curl -V` output if c-ares is used for
additional resolves in addition to a "normal" resolve done with the threaded
resolver.
The data extracted from the HTTPS RR is stored in the in-memory DNS cache to
be reused on subsequent uses of the same hostnames.

View File

@ -171,7 +171,7 @@ interface. (added in 7.10.7)
supports HTTP Brotli content encoding using libbrotlidec (Added in 7.57.0)
## `c-ares-rr`
## `asyn-rr`
*features* mask bit: non-existent

View File

@ -461,15 +461,15 @@ static const struct feat features_table[] = {
#ifndef CURL_DISABLE_ALTSVC
FEATURE("alt-svc", NULL, CURL_VERSION_ALTSVC),
#endif
#if defined(USE_ARES) && defined(CURLRES_THREADED) && defined(USE_HTTPSRR)
FEATURE("asyn-rr", NULL, 0),
#endif
#ifdef CURLRES_ASYNCH
FEATURE("AsynchDNS", NULL, CURL_VERSION_ASYNCHDNS),
#endif
#ifdef HAVE_BROTLI
FEATURE("brotli", NULL, CURL_VERSION_BROTLI),
#endif
#if defined(CURLRES_ARES) && defined(CURLRES_THREADED)
FEATURE("c-ares-rr", NULL, 0),
#endif
#ifdef DEBUGBUILD
FEATURE("Debug", NULL, CURL_VERSION_DEBUG),
#endif

View File

@ -436,10 +436,10 @@ Features testable here are:
- `alt-svc`
- `AppleIDN`
- `asyn-rr` - c-ares is used for additional records only
- `bearssl`
- `brotli`
- `c-ares` - c-ares is used for (all) name resolves
- `c-ares-rr` - c-ares is used for additional records only
- `CharConv`
- `codeset-utf8`. If the running codeset is UTF-8 capable.
- `cookies`

View File

@ -699,7 +699,7 @@ sub checksystemfeatures {
# Thread-safe init
$feature{"threadsafe"} = $feat =~ /threadsafe/i;
$feature{"HTTPSRR"} = $feat =~ /HTTPSRR/;
$feature{"c-ares-rr"} = $feat =~ /c-ares-rr/;
$feature{"asyn-rr"} = $feat =~ /asyn-rr/;
}
#
# Test harness currently uses a non-stunnel server in order to