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:
parent
ff4dc67299
commit
ee83fc0de0
@ -100,7 +100,7 @@ sendrecv(struct iodesc *d,
|
|||||||
cc, ssize);
|
cc, ssize);
|
||||||
|
|
||||||
tleft = tmo;
|
tleft = tmo;
|
||||||
tmo <<= 1;
|
tmo += MINTMO;
|
||||||
if (tmo > MAXTMO)
|
if (tmo > MAXTMO)
|
||||||
tmo = MAXTMO;
|
tmo = MAXTMO;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user