diff options
author | Werner Koch <wk@gnupg.org> | 2022-02-01 16:02:20 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2022-02-01 16:03:06 +0100 |
commit | 57d546674d081b9a4cd5d9281ea34cb5c85d2830 (patch) | |
tree | c6f7bb7e8f75a9e5be29d293e2b9faf9a5f7a882 /tools/gpgtar-create.c | |
parent | sm: Partly revert last commit. (diff) | |
download | gnupg2-57d546674d081b9a4cd5d9281ea34cb5c85d2830.tar.xz gnupg2-57d546674d081b9a4cd5d9281ea34cb5c85d2830.zip |
dirmngr: Avoid initial delay on the first keyserver access.
* dirmngr/dirmngr.c (dirmngr_never_use_tor_p): New.
* dirmngr/server.c (ensure_keyserver): Don't even test for the Tor
proxy in never-use-tor Mode.
* tools/gpgtar-create.c: Include unistd.h to avoid a warning on
Windows.
--
This delay of 2 or 3 seconds is in particular annoying on Windows.
This is now suppressed, as it should be, if --no-use-tor is used.
The second patch is unrelated
Diffstat (limited to '')
-rw-r--r-- | tools/gpgtar-create.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gpgtar-create.c b/tools/gpgtar-create.c index ef9a29d15..80860befd 100644 --- a/tools/gpgtar-create.c +++ b/tools/gpgtar-create.c @@ -28,11 +28,11 @@ #include <sys/types.h> #include <sys/stat.h> #include <dirent.h> +#include <unistd.h> #ifdef HAVE_W32_SYSTEM # define WIN32_LEAN_AND_MEAN # include <windows.h> #else /*!HAVE_W32_SYSTEM*/ -# include <unistd.h> # include <pwd.h> # include <grp.h> #endif /*!HAVE_W32_SYSTEM*/ |