Client behavior when downloading files

Asked by Bartek

Hi,

I was wondering what would happen if client-server connection would broke during downloading some files needed to complete layout.

Is it simply skipped, next files are downloaded/or not if next connection problem, and finally xlf is saved od disk and played,

or maybe

files with problems are skipped and saving xlf on disk is skipped also (if at least one file uncompleted), to allow next layout complete try during next collection interval?

As far I remember first option is valid, so there will be any download retry later (in one program run, no after client restart) or broken files would remain on disk until client restart and next collection interval ticks wont help here?

Question information

Language:
English Edit question
Status:
Solved
For:
Xibo Edit question
Assignee:
No assignee Edit question
Solved by:
Bartek
Solved:
Last query:
Last reply:
Revision history for this message
Alex Harrington (alexharrington) said :
#1

I'd imagine that on each collection tick the results of the RequiredFiles webservice call are compared to the file cache object. If any file or layout isn't matching then it would be downloaded.

Alex

--- original message ---
From: "Bartek" <email address hidden>
Subject: [Question #98392]: Client behavior when downloading files
Date: 23rd January 2010
Time: 12:25:37 pm

New question #98392 on Xibo:
https://answers.launchpad.net/xibo/+question/98392

Hi,

I was wondering what would happen if client-server connection would broke during downloading some files needed to complete layout.

Is it simply skipped, next files are downloaded/or not if next connection problem, and finally xlf is saved od disk and played,

or maybe

files with problems are skipped and saving xlf on disk is skipped also (if at least one file uncompleted), to allow next layout complete try during next collection interval?

As far I remember first option is valid, so there will be any download retry later (in one program run, no after client restart) or broken files would remain on disk until client restart and next collection interval ticks wont help here?

--
You received this question notification because you are a member of Xibo
Developers, which is an answer contact for Xibo.

This email carries a disclaimer, a copy of which may be read at http://learning.longhill.org.uk/disclaimer

Revision history for this message
Alex Harrington (alexharrington) said :
#2

Ie. It's the output of RequiredFiles that drives file collection not the contents of the xlf files.

Alex

--- original message ---
From: "Bartek" <email address hidden>
Subject: [Question #98392]: Client behavior when downloading files
Date: 23rd January 2010
Time: 12:25:37 pm

New question #98392 on Xibo:
https://answers.launchpad.net/xibo/+question/98392

Hi,

I was wondering what would happen if client-server connection would broke during downloading some files needed to complete layout.

Is it simply skipped, next files are downloaded/or not if next connection problem, and finally xlf is saved od disk and played,

or maybe

files with problems are skipped and saving xlf on disk is skipped also (if at least one file uncompleted), to allow next layout complete try during next collection interval?

As far I remember first option is valid, so there will be any download retry later (in one program run, no after client restart) or broken files would remain on disk until client restart and next collection interval ticks wont help here?

--
You received this question notification because you are a member of Xibo
Developers, which is an answer contact for Xibo.

This email carries a disclaimer, a copy of which may be read at http://learning.longhill.org.uk/disclaimer

Revision history for this message
Bartek (czajka) said :
#3

I'm not sure that i'm understand correctly, so i'm going to ask again to make sure:

So, if some files were broken in effect od connection problems during transfer, there will be redownload as soon as possible (when connection is back again and collection interval tick), right?

Revision history for this message
Alex Harrington (alexharrington) said :
#4

That's my understanding, yes. But Dan will be able to confirm.

Alex

--- original message ---
From: "Bartek" <email address hidden>
Subject: RE: [Question #98392]: Client behavior when downloading files
Date: 23rd January 2010
Time: 3:19:41 pm

Question #98392 on Xibo changed:
https://answers.launchpad.net/xibo/+question/98392

    Status: Answered => Open

Bartek is still having a problem:
I'm not sure that i'm understand correctly, so i'm going to ask again to
make sure:

So, if some files were broken in effect od connection problems during
transfer, there will be redownload as soon as possible (when connection
is back again and collection interval tick), right?

--
You received this question notification because you are a member of Xibo
Developers, which is an answer contact for Xibo.

This email carries a disclaimer, a copy of which may be read at http://learning.longhill.org.uk/disclaimer

Revision history for this message
Dan Garner (dangarner) said :
#5

Alex is correct, the client will re-download any corrupt media when the
collection interval occurs.

If a file fails the download 5 times it will be blacklisted and not
downloaded again.

Can you check in the blacklist table on your server?

If there are records in there that media wont be downloaded, you can delete
those records to clear the block.

On 23 Jan 2010 15:24, "Alex Harrington" <email address hidden>
wrote:

Question #98392 on Xibo changed:
https://answers.launchpad.net/xibo/+question/98392
   Status: Open => Answered

Alex Harrington proposed the following answer:
That's my understanding, yes. But Dan will be able to confirm.

Alex --- original message --- From: "Bartek" <
<email address hidden>>

Subject: RE: [Question #98392]: Client behavior when downloading files Date:
23rd January 2010

Time: 3:19:41 pm Question #98392 on Xibo changed:
https://answers.launchpad.net/xibo/+question/9839...

This email carries a disclaimer, a copy of which may be read at
http://learning.longhill.org.uk/disc...

You received this question notification because you are a member of Xibo
Developers, which is an ans...

Revision history for this message
Bartek (czajka) said :
#6

Alex, Dan thanks for fast answer :)

It was only a theoretically question, it's hard to check remote client behavior when network connection is broken, so i've decided to ask instead ;)

Thanks again :)