From 482fd5758c1b7e1b33c4cb50656e586a3ae16815 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 31 Jul 2017 13:12:37 +0200 Subject: [PATCH] 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 --- dirmngr/http.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;