]> git.ipfire.org Git - thirdparty/curl.git/commit
dnscache: slight refactoring
authorStefan Eissing <stefan@eissing.org>
Thu, 3 Apr 2025 11:11:32 +0000 (13:11 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 3 Apr 2025 14:40:56 +0000 (16:40 +0200)
commit01e76702aca1ef893d0e653a70b3261ae61899d3
treeb505b53235befb69d5c3cd118b0ebf87dd0a7835
parent6140a574dec4771fe36da43d45eea2535fe6e555
dnscache: slight refactoring

Slight refactoring around dnscache, e.g. hostcache

- eliminate `data->state.hostcache`. Always look up
  relevant dnscache at share/multi.
- unify naming to "dnscache", replacing "hostcache"
- use `struct Curl_dnscache`, even though it just
  contains a `Curl_hash` for now.
- add `Curl_dnscache_destroy()` for cleanup in
  share/multi.

Closes #16941
14 files changed:
lib/cshutdn.c
lib/doh.c
lib/hostasyn.c
lib/hostip.c
lib/hostip.h
lib/multi.c
lib/multihandle.h
lib/setopt.c
lib/share.c
lib/share.h
lib/urldata.h
tests/unit/unit1305.c
tests/unit/unit1607.c
tests/unit/unit1609.c