File download interruption
I've made a separate thread for this question to keep those simillar subject separated.
I'm thinking about file download interruption during layout sync. (It's not important in with version: filecorruption detection with md5 and deletion whole file, version with appending to file on hd, etc).
At the beginning client probably scans it's resources and generate some list aka. Those Files Are Missing. That could be a list of all files in layout if there is a new layout queued, files from some place of layout if download was interrupted by shutdown, some random files in effect of deletion of fs corruption when md5 is wrong, etc. But there is probably some sequence of files that client need to download.
As far I can guess right now, clients call some download(
If someting goes wrong (network disconnection, full disk, some file lock (file clicked on windows, opened accidently in wmp, other) downloaded is stopped and client pass to next file in queue, and never goes back to broken file.
At last at the end of layout download client start layout playback, regardless of download state of downloaded files.
(Or maybe I'm wrong and there is another iteration on files queue?)
Alex, Dan, what do You think about that? Fixing it is a bug of additional functionality targeted to unstable version?
Again, maybe it's a good idea to implement some workaround in stable, and plan some good file queue support in separated thread in unstable?
Simple workaround could look something like this:
Now (probably):
foreach (file in missing_files)
{
download(file); //download returns when there is some problem
}
play_some_layout();
Workaround:
foreach (file in missing_files)
{
while(download(
}
play_some_layout();
Question is - better to allow situation when playing unfinished files and take risk of hanging up client, or wait as long as it need to download file in 100%
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Xibo Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Alex Harrington
- Solved:
- Last query:
- Last reply: