Date: Wed, 15 Jun 2011 21:58:01 +0000 (UTC) From: Craig Rodrigues <rodrigc@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r223121 - head/lib/libstand Message-ID: <201106152158.p5FLw1oU099767@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106152158.p5FLw1oU099767>