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?
File in use after upload to Sbridge SFTP server
-
- Posts: 132
- Joined: Wed 17 Aug 2016 05:57
Re: File in use after upload to Sbridge SFTP server
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.
-
- Posts: 132
- Joined: Wed 17 Aug 2016 05:57
Re: File in use after upload to Sbridge SFTP server
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
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.
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.
-
- Posts: 132
- Joined: Wed 17 Aug 2016 05:57
Re: File in use after upload to Sbridge SFTP server
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.
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
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.