dirmngr: Handle EIO which is sometimes returned by cookie functions.
authorWerner Koch <wk@gnupg.org>
Mon, 3 Apr 2017 18:23:18 +0000 (20:23 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 3 Apr 2017 18:23:18 +0000 (20:23 +0200)
* dirmngr/ks-engine-hkp.c (handle_send_request_error): Handle EIO.
--

Suggested-by: Andre Heinecke
Signed-off-by: Werner Koch <wk@gnupg.org>
dirmngr/ks-engine-hkp.c

index ee7d506..4428c12 100644 (file)
@@ -1283,6 +1283,7 @@ handle_send_request_error (ctrl_t ctrl, gpg_error_t err, const char *request,
     case GPG_ERR_ENETDOWN:
     case GPG_ERR_UNKNOWN_HOST:
     case GPG_ERR_NETWORK:
+    case GPG_ERR_EIO:  /* Sometimes used by estream cookie functions.  */
       if (mark_host_dead (request) && *tries_left)
         retry = 1;
       break;