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
F82880399: D18544.diff
Fri, May 3, 12:24 PM
F82835339: D18544.id51978.diff
Fri, May 3, 12:25 AM
Unknown Object (File)
Mon, Apr 29, 10:42 AM
Unknown Object (File)
Mon, Apr 29, 10:42 AM
Unknown Object (File)
Mar 11 2024, 10:32 AM
Unknown Object (File)
Feb 24 2024, 1:11 AM
Unknown Object (File)
Feb 24 2024, 1:11 AM
Unknown Object (File)
Feb 24 2024, 1:11 AM
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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 21602
Build 20902: arc lint + arc unit

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.