aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/http.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2017-07-31 11:12:37 +0000
committerWerner Koch <[email protected]>2017-07-31 11:12:37 +0000
commit482fd5758c1b7e1b33c4cb50656e586a3ae16815 (patch)
tree35b757b85d467b88d925e842ef69c8cd603d43ca /dirmngr/http.c
parentExplain the "server is older than xxx warning". (diff)
downloadgnupg-482fd5758c1b7e1b33c4cb50656e586a3ae16815.tar.gz
gnupg-482fd5758c1b7e1b33c4cb50656e586a3ae16815.zip
dirmngr,w32: Fix http connection timeout problem.
* dirmngr/http.c (connect_with_timeout) [W32]: Take care of EAGAIN. -- GnuPG-bug-id: 3319 Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r--dirmngr/http.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/dirmngr/http.c b/dirmngr/http.c
index 0bedba098..8e778dfa2 100644
--- a/dirmngr/http.c
+++ b/dirmngr/http.c
@@ -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;