Page 1 of 1
File in use after upload to Sbridge SFTP server
Posted: Tue 10 Jan 2017 17:56
by tcaduto12068
Hi,
Every once in a great while I will get a file that has been uploaded and can't be moved or deleted because it's in use.
I believe a unhandled exception is occurring from some protocol issue maybe and this causes the onclosefile event to not fire. I usually get a access violation raised in the onclientdisconnect when this happens. Is there a way to get the file handle in case of an error and make sure it's closed?
Re: File in use after upload to Sbridge SFTP server
Posted: Wed 11 Jan 2017 10:51
by ViktorV
We have changed the behavior, and in SecureBridge starting from version 7.2.3, the OnSuccess event occurs with Operation = opClosingHandle, when the local file is already closed.
Re: File in use after upload to Sbridge SFTP server
Posted: Wed 08 Mar 2017 23:06
by tcaduto12068
I mean the file is in use on the server after I upload it with any client, it only happens once in a great while if the client has some kind of issue while uploading.
Re: File in use after upload to Sbridge SFTP server
Posted: Thu 09 Mar 2017 11:40
by ViktorV
Unfortunately, we could not reproduce the issue when an error occurs while uploading a file to the SFTP server and the OnCloseFile event handler is not called.
In order to get a detailed answer, please compose a full sample demonstrating the specified behavior and send it to us using the contact form
https://www.devart.com/company/contactform.html Also, please specify the used IDE version.
Re: File in use after upload to Sbridge SFTP server
Posted: Thu 09 Mar 2017 16:15
by tcaduto12068
It only happens once in a great while when some odd protocol error happens.
But when it does happen I have to stop and restart the server.
This is with version 7.1.2, but I can't get the latest version to work properly in lazarus 1.6.4 so I don't know it could be resolved.
Re: File in use after upload to Sbridge SFTP server
Posted: Mon 13 Mar 2017 12:53
by ViktorV
As we wrote earlier, unfortunately, we could not reproduce the issue. To understand the issue cause and find a solution to fix it, we need a test sample in which the issue is stably reproduced. As soon as we receive this sample and if the cause is in our product code, we will try to fix it as soon as possible.