]> git.ipfire.org Git - thirdparty/curl.git/commit
hostip: cache negative name resolves
authorDaniel Stenberg <daniel@haxx.se>
Sun, 3 Aug 2025 22:06:03 +0000 (00:06 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 5 Aug 2025 06:05:31 +0000 (08:05 +0200)
commitdf2b4ccc229c9de61dd798e4b3a7cf74a073144e
tree7733b265b6e0fef11539358392f61a3ef54e8932
parent06c12cc08b24cf74dc2c8b92ec9d545cb829f12a
hostip: cache negative name resolves

Hold them for half the normal lifetime. Helps when told to transfer N
URLs in quick succession that all use the same non-resolving hostname.

Done by storing a DNS entry with a NULL pointer for 'addr'.

Previously an attempt was made in #12406 by Björn Stenberg that was
ultimately never merged.

Closes #18157
docs/TODO
docs/libcurl/opts/CURLOPT_DNS_CACHE_TIMEOUT.md
docs/tests/FILEFORMAT.md
lib/asyn-thrdd.c
lib/hostip.c
tests/data/Makefile.am
tests/data/test2104 [new file with mode: 0644]
tests/data/test655
tests/libtest/lib655.c
tests/runtests.pl
tests/server/dnsd.c