[pacman-dev] [PATCH 2/2] pacman-key: add a default keyserver timeout value on --init

Dan McGee dan at archlinux.org
Mon Oct 17 10:44:08 EDT 2011

The default is supposidely 30 seconds from the gpg manpage, but that
sure wasn't what I was seeing- it was somewhere closer to two minutes of
silence. Add a more reasonable 10 second timeout value which should be
good enough for any keyserver that doesn't totally stink at it's job.

Signed-off-by: Dan McGee <dan at archlinux.org>
 scripts/pacman-key.sh.in |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/scripts/pacman-key.sh.in b/scripts/pacman-key.sh.in
index 558d615..ee43dde 100644
--- a/scripts/pacman-key.sh.in
+++ b/scripts/pacman-key.sh.in
@@ -166,6 +166,7 @@ initialize() {
 	add_gpg_conf_option "$conffile" 'lock-never'
 	add_gpg_conf_option "$conffile" 'keyserver' "$keyserv"
+	add_gpg_conf_option "$conffile" 'keyserver-options' 'timeout=10'
 	# set up a private signing key (if none available)
 	if [[ $(secret_keys_available) -lt 1 ]]; then

More information about the pacman-dev mailing list