svn commit: r223121 - head/lib/libstand
Craig Rodrigues
rodrigc at FreeBSD.org
Wed Jun 15 21:58:01 UTC 2011
Author: rodrigc
Date: Wed Jun 15 21:58:01 2011
New Revision: 223121
URL: http://svn.freebsd.org/changeset/base/223121
Log:
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>
Modified:
head/lib/libstand/net.c
Modified: head/lib/libstand/net.c
==============================================================================
--- head/lib/libstand/net.c Wed Jun 15 21:48:10 2011 (r223120)
+++ head/lib/libstand/net.c Wed Jun 15 21:58:01 2011 (r223121)
@@ -100,7 +100,7 @@ sendrecv(struct iodesc *d,
cc, ssize);
tleft = tmo;
- tmo <<= 1;
+ tmo += MINTMO;
if (tmo > MAXTMO)
tmo = MAXTMO;
More information about the svn-src-all
mailing list