1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-12-09 19:13:13 +00:00

- Carlo Contavalli added support for the glibc "rotate" option, as documented

in man resolv.conf:

  causes round robin selection of nameservers from among those listed.  This
  has the effect of spreading the query load among all listed servers, rather
  than having all clients try the first listed server first every time.

  You can enable it with ARES_OPT_ROTATE
This commit is contained in:
Daniel Stenberg
2008-11-01 18:35:19 +00:00
parent aa8d8b4933
commit 1a1b4eb4f2
6 changed files with 62 additions and 27 deletions

2
ares.h
View File

@ -114,6 +114,7 @@ extern "C" {
#define ARES_OPT_SOCK_SNDBUF (1 << 11)
#define ARES_OPT_SOCK_RCVBUF (1 << 12)
#define ARES_OPT_TIMEOUTMS (1 << 13)
#define ARES_OPT_ROTATE (1 << 14)
/* Nameinfo flag values */
#define ARES_NI_NOFQDN (1 << 0)
@ -184,6 +185,7 @@ struct ares_options {
int timeout; /* in seconds or milliseconds, depending on options */
int tries;
int ndots;
int rotate;
unsigned short udp_port;
unsigned short tcp_port;
int socket_send_buffer_size;