Commit 174a546
fix(boot): drop the redundant auto-bootDelay network poll
In auto bootDelay mode, handleBootDelay() polled up to 5 seconds for an
NTP-capable interface before postNetwork's concurrent audio/network
threads even started -- serial dead time on every boot, and a flat 5s
loss on a box with no network at all (which then paid the link-wait
timeout again anyway).
The poll was load-bearing when it was added: waitForInterfacesUp() then
bailed out instantly if no interface had link yet, so a fast-booting
board could skip the IP/NTP wait before its NIC came up. Since the June
rework, waitForInterfacesUp() itself waits up to half its timeout for
link before deciding anything, and handleTimeSyncWait() re-checks for
an NTP-capable interface after that wait -- so the pre-poll's verdict
was computed and then discarded. Verified on a Pi 5 booting with the
network not yet up: the in-function link wait catches it (3s) and the
time-sync path proceeds normally.
Also give announceIPAddresses() a bounded wait for an address: the boot
IP wait can time out with the DHCP lease landing moments later, and the
announce service previously assumed the address was already there and
silently skipped announcing. It runs off fppd's critical path, so
waiting there is free.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 21fb472 commit 174a546
2 files changed
Lines changed: 21 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
374 | | - | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
375 | 379 | | |
376 | 380 | | |
377 | 381 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
755 | 755 | | |
756 | 756 | | |
757 | 757 | | |
758 | | - | |
759 | | - | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | | - | |
764 | | - | |
765 | | - | |
766 | | - | |
767 | | - | |
768 | | - | |
769 | | - | |
770 | | - | |
771 | | - | |
772 | | - | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | | - | |
777 | | - | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
778 | 767 | | |
779 | 768 | | |
780 | 769 | | |
| |||
1193 | 1182 | | |
1194 | 1183 | | |
1195 | 1184 | | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
1196 | 1192 | | |
1197 | 1193 | | |
1198 | 1194 | | |
| |||
0 commit comments