diff options
author | Rebecca Cran <bcran@FreeBSD.org> | 2018-12-20 19:27:46 +0000 |
---|---|---|
committer | Rebecca Cran <bcran@FreeBSD.org> | 2018-12-20 19:27:46 +0000 |
commit | d5cee48f3e65662051e15c85e4fc1841d72977fe (patch) | |
tree | 782a798626b6e0ebb154c14c834286b04db9ecd6 | |
parent | 09423f72fd97e9ccac645b87ca58135170167bb8 (diff) | |
download | src-d5cee48f3e65662051e15c85e4fc1841d72977fe.tar.gz src-d5cee48f3e65662051e15c85e4fc1841d72977fe.zip |
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
Notes
Notes:
svn path=/head/; revision=342282
-rw-r--r-- | stand/libsa/net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stand/libsa/net.c b/stand/libsa/net.c index 1834a7525e76..3142616a5bf0 100644 --- a/stand/libsa/net.c +++ b/stand/libsa/net.c @@ -63,7 +63,7 @@ __FBSDID("$FreeBSD$"); * timeout is hit. */ #ifndef MAXWAIT -#define MAXWAIT 0 /* seconds */ +#define MAXWAIT 300 /* seconds */ #endif #if MAXWAIT < 0 |