dirmngr: Improve dead host detection.
authorWerner Koch <wk@gnupg.org>
Mon, 8 Dec 2014 16:13:11 +0000 (17:13 +0100)
committerWerner Koch <wk@gnupg.org>
Mon, 8 Dec 2014 16:13:11 +0000 (17:13 +0100)
* dirmngr/ks-engine-hkp.c (handle_send_request_error): Mark host dead
also for 2 other error messages.

dirmngr/ks-engine-hkp.c

index 0a86b5d..bd98eed 100644 (file)
@@ -1075,6 +1075,8 @@ handle_send_request_error (gpg_error_t err, const char *request,
     {
     case GPG_ERR_ECONNREFUSED:
     case GPG_ERR_ENETUNREACH:
+    case GPG_ERR_UNKNOWN_HOST:
+    case GPG_ERR_NETWORK:
       if (mark_host_dead (request) && *tries_left)
         retry = 1;
       break;