Sftp unstable
Hi.
I have set up, in c#, code to upload one single xml file to a remote sftp server. However it seems to be random if it's successful or not. Often trying to run the upload it reports that connection has been refused because it seems to be ftp not sftp. However trying again 5 minutes later, it transfers the file fine.
First I had the idea that the session never disconnects from the server and this was locked for login again until timeout. I added session.close() to close the connection without any luck. However I am unsure if this actually disconnects the session. This is a c# cli script which runs several times during an hour.
Transferring with Filezilla never causes this issue. I can also connect with several instances to the server without issues.
Is the api itself somehow denying me to use the code again unless some one has gone by?
Thanks.
So, any idea what's going on?
I have set up, in c#, code to upload one single xml file to a remote sftp server. However it seems to be random if it's successful or not. Often trying to run the upload it reports that connection has been refused because it seems to be ftp not sftp. However trying again 5 minutes later, it transfers the file fine.
First I had the idea that the session never disconnects from the server and this was locked for login again until timeout. I added session.close() to close the connection without any luck. However I am unsure if this actually disconnects the session. This is a c# cli script which runs several times during an hour.
Transferring with Filezilla never causes this issue. I can also connect with several instances to the server without issues.
Is the api itself somehow denying me to use the code again unless some one has gone by?
Thanks.
So, any idea what's going on?