From f1e9f510ec70f2bb64f1b61b2b040d8d3103af32 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 12 Apr 2011 16:30:08 +0200 Subject: Add code for explicit selection of pooled A records. To better cope with round robin pooled A records like keys.gnupg.net we need to keep some information on unresponsive hosts etc. What we do now is to resolve the hostnames, remember them and select a random one. If a host is dead it will be marked and a different one selected. This is intended to solve the problem of long timeouts due to unresponsive hosts. The code is not yet finished but selection works. --- common/sysutils.h | 1 + 1 file changed, 1 insertion(+) (limited to 'common/sysutils.h') diff --git a/common/sysutils.h b/common/sysutils.h index a2f74f936..3559b348e 100644 --- a/common/sysutils.h +++ b/common/sysutils.h @@ -41,6 +41,7 @@ void trap_unaligned (void); int disable_core_dumps (void); int enable_core_dumps (void); const unsigned char *get_session_marker (size_t *rlen); +unsigned int get_uint_nonce (void); /*int check_permissions (const char *path,int extension,int checkonly);*/ void gnupg_sleep (unsigned int seconds); int translate_sys2libc_fd (gnupg_fd_t fd, int for_write); -- cgit v1.2.3