summaryrefslogtreecommitdiffstats
path: root/lib/libstand/net.c
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2011-06-15 21:58:01 +0000
committerrodrigc <rodrigc@FreeBSD.org>2011-06-15 21:58:01 +0000
commit5d1632301aa97755dbc6e9325ffa2722ea8c7ea7 (patch)
tree8a691d44a6ad54e147b9692a8f7beae2862ea4ad /lib/libstand/net.c
parent84b55be725c7dfa96339786e79ce1935e17f7165 (diff)
downloadFreeBSD-src-5d1632301aa97755dbc6e9325ffa2722ea8c7ea7.zip
FreeBSD-src-5d1632301aa97755dbc6e9325ffa2722ea8c7ea7.tar.gz
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 <sbalraj at juniper dot net>
Diffstat (limited to 'lib/libstand/net.c')
-rw-r--r--lib/libstand/net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libstand/net.c b/lib/libstand/net.c
index 81b4521..24593e6 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;
OpenPOWER on IntegriCloud