Repository navigation
Fix: Full review 4.0.12 fixes part2 - #258
Merged
Merged
Conversation
nadzpogi
approved these changes
Oct 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #257
Five fixes from the 4.0.12 review, all around how the player talks to the CMS.
Changes
XMDS timeouts and overlapping collections
XMDS requests had no timeout, so a CMS that never answered held a collection forever. New collections also kept starting on top of a running one, which could send stats and logs twice.
collect()runs one collection at a time. A request that comes in during one queues a single follow-up. If the CMS stops answering, the next collection waits up to 120s for it.Schedule or file list not applied after a failed fetch
The CMS checksums were saved before the fetch succeeded. After one failed fetch the player thought it was up to date and didn't try again.
CMS rejects requests with
&or<Log fields like
method, stat tags, criteria values and the status JSON were sent without escaping. One&made the CMS reject the whole request.Data widget timers piling up
Every file list fetch added another update timer per data widget and never cleared the old ones.
Deleted commands still running
When the CMS sent no commands, the old scheduled timers and profile commands weren't cleared, so a deleted command still ran.
setTimeoutwould otherwise run them straight away.Testing
I tested the real app (
npm run dev) against develop.xibo.co.uk, comparingdevelopwith this branch. A local proxy between the app and the CMS injected failures (no reply, a slow reply, a failed fetch). For no. 5 I used a real scheduled command.&: CMS returns Bad Request