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:
parent
2e4114e463
commit
3dd425f70b
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user