mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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
This commit is contained in:
parent
623a427b0c
commit
57d546674d
4 changed files with 13 additions and 3 deletions
|
@ -620,6 +620,15 @@ dirmngr_use_tor (void)
|
|||
}
|
||||
|
||||
|
||||
/* This is somewhat similar to dirmngr_use_tor but avoids a trial
|
||||
* connect and may thus be faster for this special case. */
|
||||
int
|
||||
dirmngr_never_use_tor_p (void)
|
||||
{
|
||||
return tor_mode == TOR_MODE_NEVER;
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
wrong_args (const char *text)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue