]> git.ipfire.org Git - thirdparty/tor.git/commit
geoip: Hook the client history cache into the OOM handler
authorDavid Goulet <dgoulet@torproject.org>
Fri, 2 Feb 2018 15:15:28 +0000 (10:15 -0500)
committerDavid Goulet <dgoulet@torproject.org>
Fri, 2 Feb 2018 19:48:41 +0000 (14:48 -0500)
commit51839f47650463f59bd2cc84da05d5bc535d699d
tree0d75973ecb70a578e0c9db02fe1643e0afaabf61
parenta2aaf9509ba578f4e7705b506ee9a0f764d24ff2
geoip: Hook the client history cache into the OOM handler

If the cache is using 20% of our maximum allowed memory, clean 10% of it. Same
behavior as the HS descriptor cache.

Closes #25122

Signed-off-by: David Goulet <dgoulet@torproject.org>
changes/ticket25122 [new file with mode: 0644]
src/or/geoip.c
src/or/geoip.h
src/or/relay.c
src/test/test.c