mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
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 <wk@gnupg.org>
This commit is contained in:
parent
4ad5bc1b6d
commit
482fd5758c
@ -2750,7 +2750,11 @@ connect_with_timeout (assuan_fd_t sock,
|
|||||||
return 0; /* Success. */
|
return 0; /* Success. */
|
||||||
}
|
}
|
||||||
err = gpg_err_make (default_errsource, gpg_err_code_from_syserror ());
|
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 ();
|
RESTORE_BLOCKING ();
|
||||||
return err;
|
return err;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user