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 ?
TSPlus Webfile transferring file prematurely
-
- Posts: 51
- Joined: Tue May 17, 2016 8:24 pm
Re: TSPlus Webfile transferring file prematurely
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.
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