svn commit: r342282 - head/stand/libsa

Rebecca Cran bcran at FreeBSD.org
Thu Dec 20 19:27:47 UTC 2018


Author: bcran
Date: Thu Dec 20 19:27:46 2018
New Revision: 342282
URL: https://svnweb.freebsd.org/changeset/base/342282

Log:
  Wait a maximum of 300 seconds for network send/recv in libsa
  
  The reason for this change is that currently, a send/recv
  takes many hours to time out.
  This is suboptimal in the bootloader because it means for example
  that NFS will take hours to fail before allowing subsequent access
  methods such as gzip to be tried.
  
  Setting MAXWAIT to 300 seconds (5 minutes) still allows slow
  connections of 1Mb to be used to download a 30MB kernel file.
  
  Sponsored by:	Netflix
  Differential Revision:	https://reviews.freebsd.org/D18544

Modified:
  head/stand/libsa/net.c

Modified: head/stand/libsa/net.c
==============================================================================
--- head/stand/libsa/net.c	Thu Dec 20 18:28:53 2018	(r342281)
+++ head/stand/libsa/net.c	Thu Dec 20 19:27:46 2018	(r342282)
@@ -63,7 +63,7 @@ __FBSDID("$FreeBSD$");
  * timeout is hit.
  */
 #ifndef MAXWAIT
-#define MAXWAIT 0	/* seconds */
+#define MAXWAIT 300	/* seconds */
 #endif
 
 #if MAXWAIT < 0


More information about the svn-src-all mailing list