From ee83fc0de0a4c292022d9ce04c8fed99c3339843 Mon Sep 17 00:00:00 2001 From: Craig Rodrigues Date: Wed, 15 Jun 2011 21:58:01 +0000 Subject: [PATCH] In sendrecv function, change the receive timeout value between retries to increase in steps of MINTMO, instead of doubling the timeout for every retry. Obtained from: Juniper Networks Fixed by: Santhanakrishnan Balraj --- lib/libstand/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libstand/net.c b/lib/libstand/net.c index 81b4521c4c02..24593e6d2ecd 100644 --- a/lib/libstand/net.c +++ b/lib/libstand/net.c @@ -100,7 +100,7 @@ sendrecv(struct iodesc *d, cc, ssize); tleft = tmo; - tmo <<= 1; + tmo += MINTMO; if (tmo > MAXTMO) tmo = MAXTMO;