dirmngr,w32: Fix http connection timeout problem.
authorWerner Koch <wk@gnupg.org>
Mon, 31 Jul 2017 11:12:37 +0000 (13:12 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 31 Jul 2017 11:12:37 +0000 (13:12 +0200)
* dirmngr/http.c (connect_with_timeout) [W32]: Take care of EAGAIN.
--

GnuPG-bug-id: 3319
Signed-off-by: Werner Koch <wk@gnupg.org>
dirmngr/http.c

index 0bedba0..8e778df 100644 (file)
@@ -2750,7 +2750,11 @@ connect_with_timeout (assuan_fd_t sock,
       return 0; /* Success.  */
     }
   err = gpg_err_make (default_errsource, gpg_err_code_from_syserror ());
-  if (gpg_err_code (err) != GPG_ERR_EINPROGRESS)
+  if (gpg_err_code (err) != GPG_ERR_EINPROGRESS
+#ifdef HAVE_W32_SYSTEM
+      && gpg_err_code (err) != GPG_ERR_EAGAIN
+#endif
+      )
     {
       RESTORE_BLOCKING ();
       return err;