Page 1 of 1
TSPlus Webfile transferring file prematurely
Posted: Tue Feb 07, 2017 8:54 pm
by fakebrains
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 ?
Re: TSPlus Webfile transferring file prematurely
Posted: Tue Feb 07, 2017 10:42 pm
by juwagn
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.