Home GnuPG
Diffusion GnuPG ecfc4db3a2f8

dirmngr: Handle failures related to missing IPv6 gracefully

Description

dirmngr: Handle failures related to missing IPv6 gracefully

* dirmngr/ks-engine-hkp.c (handle_send_request_error): Handle two more
error codes.

Handle the two possible connect failures related to missing IPv6 support
gracefully by marking the host dead and retrying with another one.
If IPv6 is disabled via procfs, connect() will return EADDRNOTAVAIL.
If IPv6 is not compiled into the kernel, it will return EAFNOSUPPORT.
This makes it possible to use dual-stack hkp servers on hosts not having
IPv6 without random connection failures.

The above description seems to be for Linux, so it is possible that
other systems might behave different. However, it is worth to try
this patch.

  • GnuPG-bug-id: T3331
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
mgornyAuthored on Jan 31 2018, 4:57 PM
wernerCommitted on Feb 22 2018, 8:46 PM
Parents
rG641aae783e46: doc: Fix recently introduced typo in gpgsm.texi.
Branches
Unknown
Tags
Unknown
Tasks
T3331: gpg: Address family not supported by protocol if kernel doesn't support ipv6