summaryrefslogtreecommitdiffstats
path: root/dirmngr
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2018-04-26 12:39:59 +0200
committerWerner Koch <wk@gnupg.org>2018-04-26 12:42:55 +0200
commit5789afc840cf79ba2a8cebd9d772ef9c3868c5e9 (patch)
tree78915d04080975824dedfdfbd2ab5df2c750ce37 /dirmngr
parentdirmngr: Fix handling of CNAMEed keyserver pools. (diff)
downloadgnupg2-5789afc840cf79ba2a8cebd9d772ef9c3868c5e9.tar.xz
gnupg2-5789afc840cf79ba2a8cebd9d772ef9c3868c5e9.zip
dirmngr: Lower the dead host resurrection time to 1.5h
* dirmngr/ks-engine-hkp.c (RESURRECT_INTERVAL): Decrease. (INITIAL_HOSTTABLE_SIZE): Increase because the old values was likely for development. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'dirmngr')
-rw-r--r--dirmngr/ks-engine-hkp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dirmngr/ks-engine-hkp.c b/dirmngr/ks-engine-hkp.c
index eba7a1a48..32840e68e 100644
--- a/dirmngr/ks-engine-hkp.c
+++ b/dirmngr/ks-engine-hkp.c
@@ -55,7 +55,7 @@
/* Number of seconds after a host is marked as resurrected. */
-#define RESURRECT_INTERVAL (3600*3) /* 3 hours */
+#define RESURRECT_INTERVAL (3600+1800) /* 1.5 hours */
/* To match the behaviour of our old gpgkeys helper code we escape
more characters than actually needed. */
@@ -110,7 +110,7 @@ static hostinfo_t *hosttable;
static int hosttable_size;
/* The number of host slots we initially allocate for HOSTTABLE. */
-#define INITIAL_HOSTTABLE_SIZE 10
+#define INITIAL_HOSTTABLE_SIZE 50
/* Create a new hostinfo object, fill in NAME and put it into