Page MenuHomeFreeBSD

Wait a maximum of 300 seconds for network send/recv operations
ClosedPublic

Authored by bcran on Dec 13 2018, 10:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 8:31 AM
Unknown Object (File)
Thu, Nov 21, 12:28 AM
Unknown Object (File)
Wed, Nov 13, 7:04 AM
Unknown Object (File)
Wed, Nov 6, 10:13 PM
Unknown Object (File)
Oct 19 2024, 12:10 AM
Unknown Object (File)
Oct 7 2024, 9:12 PM
Unknown Object (File)
Sep 30 2024, 7:01 PM
Unknown Object (File)
Sep 24 2024, 6:24 PM
Subscribers
None

Details

Summary

The reason for this change is that currently, a send/recv appears to take 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.
For example 1Mb hubs may still be used in some places, or some people may be booting over an Internet connection (e.g.SpeedTest reports a couple of sites in Antarctica having ~1Mb connections - https://www.speedtest.net/insights/blog/exploring-internet-antarctica-2017/).

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

The reason for this change is that currently, a send/recv appears to take 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.

Increase MAXWAIT to 300, giving enough time to download a 30MB kernel file over a 1Mb connection.

bcran retitled this revision from Wait a maximum of 60 seconds for network send/recv operations to Wait a maximum of 300 seconds for network send/recv operations.Dec 17 2018, 3:32 AM

Sure, any number here is better than 0. 60 or 300. I don't care.

This revision is now accepted and ready to land.Dec 17 2018, 2:17 PM
This revision was automatically updated to reflect the committed changes.