Disable RPC exponential back-off for FreeBSD.org systems (IE. hidden

behind _FREEFALL_CONFIG).  This is done mainly to make NIS even more
resistant to packet loss.

This is not enabled by default for "normal" FreeBSD since it might cause
the server providing the RPC service to be hit heavily with RPC traffic
in case of problems.  freefall.FreeBSD.org and hub.FreeBSD.org have been
running with a patch similar to this for a couple of weeks.

MFC after:	1 week
Discussed with:	peter
This commit is contained in:
Simon L. B. Nielsen 2007-03-04 12:25:03 +00:00
parent 2e4114e463
commit 3dd425f70b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=167199
2 changed files with 10 additions and 0 deletions

View File

@ -72,6 +72,9 @@ CFLAGS+= -DNO_FLOATING_POINT
.if ${MK_NS_CACHING} != "no"
CFLAGS+= -DNS_CACHING
.endif
.if defined(_FREEFALL_CONFIG)
CFLAGS+=-D_FREEFALL_CONFIG
.endif
.if defined(SYMVER_ENABLED)
VERSION_DEF=${.CURDIR}/Versions.def

View File

@ -63,7 +63,14 @@ __FBSDID("$FreeBSD$");
#include "mt_misc.h"
#ifdef _FREEFALL_CONFIG
/*
* Disable RPC exponential back-off for FreeBSD.org systems.
*/
#define RPC_MAX_BACKOFF 1 /* second */
#else
#define RPC_MAX_BACKOFF 30 /* seconds */
#endif
static struct clnt_ops *clnt_dg_ops(void);