]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Wait a maximum of 300 seconds for network send/recv in libsa
authorRebecca Cran <bcran@FreeBSD.org>
Thu, 20 Dec 2018 19:27:46 +0000 (19:27 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Fri, 8 Oct 2021 02:41:01 +0000 (21:41 -0500)
commitc3c739c25663dec34369027edfe3cd0d85693096
treed6481b513f12d47c20db76208436160b65297445
parent72004aae0c335e6cb51923d6b80b372fca0f66e8
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.

(cherry picked from commit d5cee48f3e65662051e15c85e4fc1841d72977fe)
stand/libsa/net.c