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)
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
Unknown Object (File)
Feb 23 2024, 2:16 PM
Unknown Object (File)
Feb 11 2024, 11:52 PM
Unknown Object (File)
Feb 2 2024, 1:39 AM
Unknown Object (File)
Jan 12 2024, 8:57 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

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.