Skip to content

Conversation

@KEGustafsson
Copy link
Contributor

This PR add time to sources at boot time to enable source priority filtering work correctly.
Current implementation allowing all sources to enter the Signal K before source priority starts to filter sources.

Delays acceptance of lower-priority sources at startup until cumulative
timeouts of higher-priority sources have elapsed, giving preferred
sources time to connect before fallbacks are accepted.
@KEGustafsson
Copy link
Contributor Author

Failing tests are not due to this change.
test/security.js is causing these

@tkurki
Copy link
Member

tkurki commented Dec 27, 2025

Working on the unrelated failure...

@tkurki
Copy link
Member

tkurki commented Dec 27, 2025

Could we just initialise pathLatestTimestamps so that it looks like the highest precedence source produced data when the server started?

Initialize paths as if the highest precedence source produced data at
boot time, allowing the existing timeout logic to handle filtering.
This replaces the separate filterStartTime tracking and cumulative
timeout calculation.
@tkurki tkurki added the feature label Jan 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants