dirmngr: Limit the number of cached domains for WKD.
authorWerner Koch <wk@gnupg.org>
Tue, 14 Nov 2017 07:37:27 +0000 (08:37 +0100)
committerWerner Koch <wk@gnupg.org>
Tue, 14 Nov 2017 08:04:52 +0000 (09:04 +0100)
commit26f08343fbccdbaa177c3507a3c5e24a5cf94a2d
tree8f237d69d93f29f075eedf4bfdc839b66ef16e97
parent65038e6852185c20413d8f6602218ee636413b77
dirmngr: Limit the number of cached domains for WKD.

* dirmngr/domaininfo.c (MAX_DOMAINBUCKET_LEN): New.
(insert_or_update): Limit the length of a bucket chain.
(domaininfo_print_stats): Print just one summary line.

Signed-off-by: Werner Koch <wk@gnupg.org>
dirmngr/domaininfo.c