From 17fc4be5ebc7910f4c99a8f45da1143460a7e666 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 17 Nov 2008 15:55:35 +0000 Subject: resolver: use timeout of 5 (glibc uses that). delete some duplication in constants. --- include/resolv.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/resolv.h b/include/resolv.h index 9fcc2b48c..acbd4c7f1 100644 --- a/include/resolv.h +++ b/include/resolv.h @@ -98,7 +98,8 @@ typedef res_sendhookact (*res_send_rhook) (const struct sockaddr_in *ns, # define RES_MAXNDOTS 15 /* should reflect bit field size */ # define RES_MAXRETRANS 30 /* only for resolv.conf/RES_OPTIONS */ # define RES_MAXRETRY 5 /* only for resolv.conf/RES_OPTIONS */ -# define RES_DFLRETRY 2 /* Default #/tries. */ +# define RES_DFLRETRY 3 /* Default #/tries. */ +/* (glibc uses RES_DFLRETRY of 2 but also does _res.retry = 4 sometimes (!) */ # define RES_MAXTIME 65535 /* Infinity, in milliseconds. */ /* _res (an instance of this structure) uses 0.5kb in bss -- cgit v1.2.3