mirror of
https://github.com/curl/curl.git
synced 2026-04-11 12:01:42 +08:00
"asyn" is the internal name under which both c-ares and threaded resolver operate. Make the naming more consistent. Implement the c-ares resolver in `asyn-ares.*` and the threaded resolver in `asyn-thrdd.*`. The common functions are in `asyn-base.c`. When `CURLRES_ASYNCH` is defined, either of the two is used and `data->state.async` exists. Members of that struct vary for the selected implementation, but have the fields `hostname`, `port` and `ip_version` always present. This are populated when the async resolving starts and eliminate the need to pass them again when checking on the status and processing the results of the resolving. Add a `Curl_resolv_blocking()` to `hostip.h` that relieves FTP and SOCKS from having to repeat the same code. `Curl_resolv_check()` remains the function to check for status of ongoing resolving. Now it also performs internally the check if the needed DNS entry exists in the dnscache and if so, aborts the asnyc operation. (libcurl right now does not check for duplicate resolve attempts. an area for future improvements). The number of functions in `asyn.h` has been reduced. There were subtle difference in "cancel()" and "kill()" calls, both replaced by `Curl_async_shutdown()` now. This changes behaviour for threaded resolver insofar as the resolving thread is now always joined unless `data->set.quick_exit` is set. Before this was only done on some code paths. A future improvement would be a thread pool that keeps a limit and also could handle joins more gracefully. DoH, not previously tagged under "asny", has its struct `doh_probes` now also in `data->state.async`, moved there from `data->req` because it makes more sense. Further integration of DoH underneath the "asyn" umbrella seems like a good idea. Closes #16963
392 lines
9.3 KiB
Makefile
392 lines
9.3 KiB
Makefile
#***************************************************************************
|
|
# _ _ ____ _
|
|
# Project ___| | | | _ \| |
|
|
# / __| | | | |_) | |
|
|
# | (__| |_| | _ <| |___
|
|
# \___|\___/|_| \_\_____|
|
|
#
|
|
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
#
|
|
# This software is licensed as described in the file COPYING, which
|
|
# you should have received as part of this distribution. The terms
|
|
# are also available at https://curl.se/docs/copyright.html.
|
|
#
|
|
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
# copies of the Software, and permit persons to whom the Software is
|
|
# furnished to do so, under the terms of the COPYING file.
|
|
#
|
|
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
# KIND, either express or implied.
|
|
#
|
|
# SPDX-License-Identifier: curl
|
|
#
|
|
###########################################################################
|
|
|
|
LIB_VAUTH_CFILES = \
|
|
vauth/cleartext.c \
|
|
vauth/cram.c \
|
|
vauth/digest.c \
|
|
vauth/digest_sspi.c \
|
|
vauth/gsasl.c \
|
|
vauth/krb5_gssapi.c \
|
|
vauth/krb5_sspi.c \
|
|
vauth/ntlm.c \
|
|
vauth/ntlm_sspi.c \
|
|
vauth/oauth2.c \
|
|
vauth/spnego_gssapi.c \
|
|
vauth/spnego_sspi.c \
|
|
vauth/vauth.c
|
|
|
|
LIB_VAUTH_HFILES = \
|
|
vauth/digest.h \
|
|
vauth/vauth.h
|
|
|
|
LIB_VTLS_CFILES = \
|
|
vtls/bearssl.c \
|
|
vtls/cipher_suite.c \
|
|
vtls/gtls.c \
|
|
vtls/hostcheck.c \
|
|
vtls/keylog.c \
|
|
vtls/mbedtls.c \
|
|
vtls/mbedtls_threadlock.c \
|
|
vtls/openssl.c \
|
|
vtls/rustls.c \
|
|
vtls/schannel.c \
|
|
vtls/schannel_verify.c \
|
|
vtls/sectransp.c \
|
|
vtls/vtls.c \
|
|
vtls/vtls_scache.c \
|
|
vtls/vtls_spack.c \
|
|
vtls/wolfssl.c \
|
|
vtls/x509asn1.c
|
|
|
|
LIB_VTLS_HFILES = \
|
|
vtls/bearssl.h \
|
|
vtls/cipher_suite.h \
|
|
vtls/gtls.h \
|
|
vtls/hostcheck.h \
|
|
vtls/keylog.h \
|
|
vtls/mbedtls.h \
|
|
vtls/mbedtls_threadlock.h \
|
|
vtls/openssl.h \
|
|
vtls/rustls.h \
|
|
vtls/schannel.h \
|
|
vtls/schannel_int.h \
|
|
vtls/sectransp.h \
|
|
vtls/vtls.h \
|
|
vtls/vtls_int.h \
|
|
vtls/vtls_scache.h \
|
|
vtls/vtls_spack.h \
|
|
vtls/wolfssl.h \
|
|
vtls/x509asn1.h
|
|
|
|
LIB_VQUIC_CFILES = \
|
|
vquic/curl_msh3.c \
|
|
vquic/curl_ngtcp2.c \
|
|
vquic/curl_osslq.c \
|
|
vquic/curl_quiche.c \
|
|
vquic/vquic.c \
|
|
vquic/vquic-tls.c
|
|
|
|
LIB_VQUIC_HFILES = \
|
|
vquic/curl_msh3.h \
|
|
vquic/curl_ngtcp2.h \
|
|
vquic/curl_osslq.h \
|
|
vquic/curl_quiche.h \
|
|
vquic/vquic.h \
|
|
vquic/vquic_int.h \
|
|
vquic/vquic-tls.h
|
|
|
|
LIB_VSSH_CFILES = \
|
|
vssh/libssh.c \
|
|
vssh/libssh2.c \
|
|
vssh/curl_path.c \
|
|
vssh/wolfssh.c
|
|
|
|
LIB_VSSH_HFILES = \
|
|
vssh/curl_path.h \
|
|
vssh/ssh.h
|
|
|
|
LIB_CFILES = \
|
|
altsvc.c \
|
|
amigaos.c \
|
|
asyn-ares.c \
|
|
asyn-base.c \
|
|
asyn-thrdd.c \
|
|
base64.c \
|
|
bufq.c \
|
|
bufref.c \
|
|
cf-h1-proxy.c \
|
|
cf-h2-proxy.c \
|
|
cf-haproxy.c \
|
|
cf-https-connect.c \
|
|
cf-socket.c \
|
|
cfilters.c \
|
|
conncache.c \
|
|
cshutdn.c \
|
|
connect.c \
|
|
content_encoding.c \
|
|
cookie.c \
|
|
curl_addrinfo.c \
|
|
curl_des.c \
|
|
curl_endian.c \
|
|
curl_fnmatch.c \
|
|
curl_get_line.c \
|
|
curl_gethostname.c \
|
|
curl_gssapi.c \
|
|
curl_memrchr.c \
|
|
curl_multibyte.c \
|
|
curl_ntlm_core.c \
|
|
curl_range.c \
|
|
curl_rtmp.c \
|
|
curl_sasl.c \
|
|
curl_sha512_256.c \
|
|
curl_sspi.c \
|
|
curl_threads.c \
|
|
curl_trc.c \
|
|
cw-out.c \
|
|
cw-pause.c \
|
|
dict.c \
|
|
doh.c \
|
|
dynbuf.c \
|
|
dynhds.c \
|
|
easy.c \
|
|
easygetopt.c \
|
|
easyoptions.c \
|
|
escape.c \
|
|
file.c \
|
|
fileinfo.c \
|
|
fopen.c \
|
|
formdata.c \
|
|
ftp.c \
|
|
ftplistparser.c \
|
|
getenv.c \
|
|
getinfo.c \
|
|
gopher.c \
|
|
hash.c \
|
|
hash_offt.c \
|
|
headers.c \
|
|
hmac.c \
|
|
hostip.c \
|
|
hostip4.c \
|
|
hostip6.c \
|
|
hsts.c \
|
|
http.c \
|
|
http1.c \
|
|
http2.c \
|
|
http_aws_sigv4.c \
|
|
http_chunks.c \
|
|
http_digest.c \
|
|
http_negotiate.c \
|
|
http_ntlm.c \
|
|
http_proxy.c \
|
|
httpsrr.c \
|
|
idn.c \
|
|
if2ip.c \
|
|
imap.c \
|
|
inet_ntop.c \
|
|
inet_pton.c \
|
|
krb5.c \
|
|
ldap.c \
|
|
llist.c \
|
|
macos.c \
|
|
md4.c \
|
|
md5.c \
|
|
memdebug.c \
|
|
mime.c \
|
|
mprintf.c \
|
|
mqtt.c \
|
|
multi.c \
|
|
multi_ev.c \
|
|
netrc.c \
|
|
nonblock.c \
|
|
noproxy.c \
|
|
openldap.c \
|
|
parsedate.c \
|
|
pingpong.c \
|
|
pop3.c \
|
|
progress.c \
|
|
psl.c \
|
|
rand.c \
|
|
rename.c \
|
|
request.c \
|
|
rtsp.c \
|
|
select.c \
|
|
sendf.c \
|
|
setopt.c \
|
|
sha256.c \
|
|
share.c \
|
|
slist.c \
|
|
smb.c \
|
|
smtp.c \
|
|
socketpair.c \
|
|
socks.c \
|
|
socks_gssapi.c \
|
|
socks_sspi.c \
|
|
speedcheck.c \
|
|
splay.c \
|
|
strcase.c \
|
|
strdup.c \
|
|
strequal.c \
|
|
strerror.c \
|
|
strparse.c \
|
|
system_win32.c \
|
|
telnet.c \
|
|
tftp.c \
|
|
timediff.c \
|
|
timeval.c \
|
|
transfer.c \
|
|
url.c \
|
|
urlapi.c \
|
|
version.c \
|
|
version_win32.c \
|
|
warnless.c \
|
|
ws.c
|
|
|
|
LIB_HFILES = \
|
|
altsvc.h \
|
|
amigaos.h \
|
|
arpa_telnet.h \
|
|
asyn.h \
|
|
bufq.h \
|
|
bufref.h \
|
|
cf-h1-proxy.h \
|
|
cf-h2-proxy.h \
|
|
cf-haproxy.h \
|
|
cf-https-connect.h \
|
|
cf-socket.h \
|
|
cfilters.h \
|
|
conncache.h \
|
|
cshutdn.h \
|
|
connect.h \
|
|
content_encoding.h \
|
|
cookie.h \
|
|
curl_addrinfo.h \
|
|
curl_base64.h \
|
|
curl_ctype.h \
|
|
curl_des.h \
|
|
curl_endian.h \
|
|
curl_fnmatch.h \
|
|
curl_get_line.h \
|
|
curl_gethostname.h \
|
|
curl_gssapi.h \
|
|
curl_hmac.h \
|
|
curl_krb5.h \
|
|
curl_ldap.h \
|
|
curl_md4.h \
|
|
curl_md5.h \
|
|
curl_memory.h \
|
|
curl_memrchr.h \
|
|
curl_multibyte.h \
|
|
curl_ntlm_core.h \
|
|
curl_printf.h \
|
|
curl_range.h \
|
|
curl_rtmp.h \
|
|
curl_sasl.h \
|
|
curl_setup.h \
|
|
curl_setup_once.h \
|
|
curl_sha256.h \
|
|
curl_sha512_256.h \
|
|
curl_sspi.h \
|
|
curl_threads.h \
|
|
curl_trc.h \
|
|
curlx.h \
|
|
cw-out.h \
|
|
cw-pause.h \
|
|
dict.h \
|
|
doh.h \
|
|
dynbuf.h \
|
|
dynhds.h \
|
|
easy_lock.h \
|
|
easyif.h \
|
|
easyoptions.h \
|
|
escape.h \
|
|
file.h \
|
|
fileinfo.h \
|
|
fopen.h \
|
|
formdata.h \
|
|
ftp.h \
|
|
ftplistparser.h \
|
|
functypes.h \
|
|
getinfo.h \
|
|
gopher.h \
|
|
hash.h \
|
|
hash_offt.h \
|
|
headers.h \
|
|
hostip.h \
|
|
hsts.h \
|
|
http.h \
|
|
http1.h \
|
|
http2.h \
|
|
http_aws_sigv4.h \
|
|
http_chunks.h \
|
|
http_digest.h \
|
|
http_negotiate.h \
|
|
http_ntlm.h \
|
|
http_proxy.h \
|
|
httpsrr.h \
|
|
idn.h \
|
|
if2ip.h \
|
|
imap.h \
|
|
inet_ntop.h \
|
|
inet_pton.h \
|
|
llist.h \
|
|
macos.h \
|
|
memdebug.h \
|
|
mime.h \
|
|
mqtt.h \
|
|
multihandle.h \
|
|
multi_ev.h \
|
|
multiif.h \
|
|
netrc.h \
|
|
nonblock.h \
|
|
noproxy.h \
|
|
parsedate.h \
|
|
pingpong.h \
|
|
pop3.h \
|
|
progress.h \
|
|
psl.h \
|
|
rand.h \
|
|
rename.h \
|
|
request.h \
|
|
rtsp.h \
|
|
select.h \
|
|
sendf.h \
|
|
setopt.h \
|
|
setup-os400.h \
|
|
setup-vms.h \
|
|
setup-win32.h \
|
|
share.h \
|
|
sigpipe.h \
|
|
slist.h \
|
|
smb.h \
|
|
smtp.h \
|
|
sockaddr.h \
|
|
socketpair.h \
|
|
socks.h \
|
|
speedcheck.h \
|
|
splay.h \
|
|
strcase.h \
|
|
strdup.h \
|
|
strerror.h \
|
|
strparse.h \
|
|
system_win32.h \
|
|
telnet.h \
|
|
tftp.h \
|
|
timediff.h \
|
|
timeval.h \
|
|
transfer.h \
|
|
url.h \
|
|
urlapi-int.h \
|
|
urldata.h \
|
|
version_win32.h \
|
|
warnless.h \
|
|
ws.h
|
|
|
|
LIB_RCFILES = libcurl.rc
|
|
|
|
CSOURCES = $(LIB_CFILES) $(LIB_VAUTH_CFILES) $(LIB_VTLS_CFILES) \
|
|
$(LIB_VQUIC_CFILES) $(LIB_VSSH_CFILES)
|
|
HHEADERS = $(LIB_HFILES) $(LIB_VAUTH_HFILES) $(LIB_VTLS_HFILES) \
|
|
$(LIB_VQUIC_HFILES) $(LIB_VSSH_HFILES)
|