Ian Kent 3685ec
autofs-5.0.3 - fix proximity other rpc ping timeout
Ian Kent 3685ec
Ian Kent 3685ec
From: Ian Kent <raven@themaw.net>
Ian Kent 3685ec
Ian Kent 3685ec
The timeout for the RCP ping for hosts that are on a network other
Ian Kent 3685ec
than the local subnet or network is mistakenly set quite short. This
Ian Kent 3685ec
can lead to unexplained intermittent failures for hosts on remote
Ian Kent 3685ec
networks.
Ian Kent 3685ec
---
Ian Kent 3685ec
Ian Kent 3685ec
 modules/replicated.c |    4 ++--
Ian Kent 3685ec
 1 files changed, 2 insertions(+), 2 deletions(-)
Ian Kent 3685ec
Ian Kent 3685ec
Ian Kent 3685ec
diff --git a/modules/replicated.c b/modules/replicated.c
Ian Kent 3685ec
index efbe6b4..925f641 100644
Ian Kent 3685ec
--- a/modules/replicated.c
Ian Kent 3685ec
+++ b/modules/replicated.c
Ian Kent 3685ec
@@ -552,7 +552,7 @@ static int get_vers_and_cost(unsigned logopt, struct host *host,
Ian Kent 3685ec
 
Ian Kent 3685ec
 	if (host->proximity == PROXIMITY_NET)
Ian Kent 3685ec
 		timeout = RPC_TIMEOUT * 2;
Ian Kent 3685ec
-	else if (host->proximity == PROXIMITY_NET)
Ian Kent 3685ec
+	else if (host->proximity == PROXIMITY_OTHER)
Ian Kent 3685ec
 		timeout = RPC_TIMEOUT * 8;
Ian Kent 3685ec
 
Ian Kent 3685ec
 	rpc_info.host = host->name;
Ian Kent 3685ec
@@ -609,7 +609,7 @@ static int get_supported_ver_and_cost(unsigned logopt, struct host *host,
Ian Kent 3685ec
 
Ian Kent 3685ec
 	if (host->proximity == PROXIMITY_NET)
Ian Kent 3685ec
 		timeout = RPC_TIMEOUT * 2;
Ian Kent 3685ec
-	else if (host->proximity == PROXIMITY_NET)
Ian Kent 3685ec
+	else if (host->proximity == PROXIMITY_OTHER)
Ian Kent 3685ec
 		timeout = RPC_TIMEOUT * 8;
Ian Kent 3685ec
 
Ian Kent 3685ec
 	rpc_info.host = host->name;