Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Dec 2018 19:27:46 +0000 (UTC)
From:      Rebecca Cran <bcran@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r342282 - head/stand/libsa
Message-ID:  <201812201927.wBKJRk1a008524@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812201927.wBKJRk1a008524>