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;
 
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to