mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-20 15:43:16 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=223121
@ -100,7 +100,7 @@ sendrecv(struct iodesc *d,
|
||||
cc, ssize);
|
||||
|
||||
tleft = tmo;
|
||||
tmo <<= 1;
|
||||
tmo += MINTMO;
|
||||
if (tmo > MAXTMO)
|
||||
tmo = MAXTMO;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user