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>
This commit is contained in:
Craig Rodrigues 2011-06-15 21:58:01 +00:00
parent ff4dc67299
commit ee83fc0de0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=223121

View File

@ -100,7 +100,7 @@ sendrecv(struct iodesc *d,
cc, ssize);
tleft = tmo;
tmo <<= 1;
tmo += MINTMO;
if (tmo > MAXTMO)
tmo = MAXTMO;