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
F132363189: D18544.id51978.diff
Thu, Oct 16, 6:06 AM
Unknown Object (File)
Wed, Oct 15, 11:23 AM
Unknown Object (File)
Wed, Oct 15, 11:22 AM
Unknown Object (File)
Wed, Oct 15, 11:22 AM
Unknown Object (File)
Wed, Oct 15, 11:22 AM
Unknown Object (File)
Wed, Oct 15, 12:28 AM
Unknown Object (File)
Fri, Oct 3, 12:25 AM
Unknown Object (File)
Wed, Oct 1, 11:50 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 21552
Build 20858: 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.