]> git.ipfire.org Git - thirdparty/curl.git/commit
hostip: do DNS cache pruning in milliseconds
authorDaniel Stenberg <daniel@haxx.se>
Mon, 4 Aug 2025 12:15:03 +0000 (14:15 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 4 Aug 2025 14:20:50 +0000 (16:20 +0200)
commit854b0e230cd5f84ae6fce3cefe12ee6de12788f3
treec5d1ec3250fd8da174ad720c012b7b617ae25298
parentbe71475b1313ff017acc1efab16e0fea84cd32f5
hostip: do DNS cache pruning in milliseconds

Instead of using integer seconds. Also: if the cache contains over
30,000 entries after first pruning, it makes anoter round and removes
all entries that are older than half the age of the oldest entry until
it goes below 30,000.

Closes #18160
lib/hostip.c
lib/hostip.h
lib/setopt.c
lib/url.c
lib/urldata.h
tests/unit/unit1607.c