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>
Mon, 11 Dec 2017 10:29:51 +0000 (11:29 +0100)
commit7a663c296e687f12ccd9a21d414de780feb4dfcf
tree5457f164c2a6028e1f32bf4b99a9d941601e688d
parent6c1dcd79cf0977844179d9a7b189c10af5e42a7e
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>
(cherry picked from commit 26f08343fbccdbaa177c3507a3c5e24a5cf94a2d)
dirmngr/domaininfo.c