From 24a3291682a316cae8998319d25e81fa4cc609ff Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Mon, 19 Sep 2011 14:18:47 -0400 Subject: [PATCH] sm-notify: Use correct retransmit timeout when sending a fresh RPC An RPC retransmit timeout should start out the same for each new RPC request. Don't increase the retransmit timeout after receiving the reply to the rpcbind query. Signed-off-by: Chuck Lever Signed-off-by: Steve Dickson --- utils/statd/sm-notify.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/statd/sm-notify.c b/utils/statd/sm-notify.c index 46447e8..aa202d3 100644 --- a/utils/statd/sm-notify.c +++ b/utils/statd/sm-notify.c @@ -701,8 +701,7 @@ smn_schedule(struct nsm_host *host) { host->xid = 0; host->send_next = time(NULL); - if (host->timeout >= NSM_MAX_TIMEOUT / 4) - host->timeout = NSM_MAX_TIMEOUT / 4; + host->timeout = NSM_TIMEOUT; insert_host(host); } -- 2.39.2