TSPlus Webfile transferring file prematurely

Get help with installation and setup problems
Post Reply
fakebrains
Posts: 51
Joined: Tue May 17, 2016 8:24 pm

TSPlus Webfile transferring file prematurely

Post by fakebrains » Tue Feb 07, 2017 8:54 pm

We have an application that writes an export file such as classifieds,txt in the webfile folder and before its done writing the file, downloaded it. Is there a way to delay transfer of the txt file until it is finished being written to ? Looking for some sort of delay setting so we can make sure the file is 100 ready otherwise the client will be missing classified ads.

Any ideas ?

juwagn
Site Admin
Posts: 239
Joined: Wed Oct 15, 2014 8:25 pm

Re: TSPlus Webfile transferring file prematurely

Post by juwagn » Tue Feb 07, 2017 10:42 pm

Hello,

actually there is already pretty long timeout of 5 seconds. If file gets written to webfile rdp protocol can't predict final size of uploaded file and uses assumption, if there was no more data for the file for at least 5 seconds then timeout it after 5 seconds as finished file.
Is that not smarter to write file to temporal directory firstly and only then move to webfile? 5 seconds is already such timeout that is pretty long.. Unfortunatelly this parameter can't be adjusted actually but I will take it on todo list to make it adjustable.
TSplus HTML5 and Java web engineer

Post Reply