]> git.ipfire.org Git - thirdparty/krb5.git/commit
Limit size of lookaside cache
authorGreg Hudson <ghudson@mit.edu>
Sat, 16 Jun 2012 15:38:57 +0000 (11:38 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 22 Jun 2012 15:46:57 +0000 (11:46 -0400)
commitf5208244315465208a7a0782138d65d9bf3885e2
tree8326adc7e27b4569720a33b507d34efaadc70c94
parentf07760088b72a11c54dd72efbc5739f231a4d4b0
Limit size of lookaside cache

Add a preprocessor constant LOOKASIDE_MAX_SIZE (defaulting to 10MB)
which limits the total size of the lookaside cache entries.  Purge
stale entries in kdc_insert_lookaside instead of kdc_check_lookaside,
and when doing so, continue purging non-stale entries until the total
cache size (including the new entry) is within the size constraint.
src/kdc/replay.c