I'm using Rebex Sftp component to perform a long time job on the server. This job should be able to recover after server/network errors. First, I tried to call SftpClient.Connect second time (after failure), this didn't help. Then I tried to disconnects and dispose a broken SftpClient, create new, connect and continue with the new one. Now I could connect to the server successfully, but when I called PutFile I got an exception with the message "Failure; Failure".
What should I do to be able to recover after network falures? Many thanks.