]> git.ipfire.org Git - thirdparty/curl.git/commit
hostip: enforce a maximum DNS cache size independent of timeout value
authorDaniel Stenberg <daniel@haxx.se>
Mon, 8 May 2023 09:11:36 +0000 (11:11 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 8 May 2023 12:55:26 +0000 (14:55 +0200)
commit9ed7d56e044f5aa1b2928ccde6245d0162cf3d0a
tree4b0e9a4b4fc9e1bd309a2a79132690fc8316c6d5
parentf62557276a9e2a5fb1876d87f5eee614ad7ef109
hostip: enforce a maximum DNS cache size independent of timeout value

To reduce the damage an application can cause if using -1 or other
ridiculous timeout values and letting the cache live long times.

The maximum number of entries in the DNS cache is now totally
arbitrarily and hard-coded set to 29999.

Closes #11084
docs/libcurl/opts/CURLOPT_DNS_CACHE_TIMEOUT.3
lib/hostip.c