OOM-purge the DNS cache one part at a time
commit37aae23945c45c459091b38699130a14466d33ef
authorNick Mathewson <nickm@torproject.org>
Fri, 17 May 2019 14:03:41 +0000 (17 10:03 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 17 May 2019 14:03:41 +0000 (17 10:03 -0400)
treea2ddd27615d9bf488f51fbd2f3a6df4be57ac756
parente5deb2bbc73d8830ae6c479a4532e72112f5484a
OOM-purge the DNS cache one part at a time

Previously we purged it in 1-hour increments -- but one-hour is the
maximum TTL for the cache!  Now we do it in 25%-TTL increments.

Fixes bug 29617; bugfix on 0.3.5.1-alpha.
changes/ticket29617 [new file with mode: 0644]
src/feature/relay/dns.c