Connection reset while FTP uploading

0 votes
asked Nov 20, 2020 by Martin Martinsson (750 points)


I didn't tested it out, but how is your library acting whenever a connection reset happens i.e. because of a 24 hour DSL connection reset.
Is there a flag or whatever to resume upload when using FTP or SFTP?


Applies to: Rebex SFTP, Rebex FTP/SSL

1 Answer

+1 vote
answered Nov 23, 2020 by Lukas Pokorny (124,570 points)


When a connection fails, active FTP or SFTP sessions represented by Ftp or Sftp objects fail as well. If you need to resume a transfer, you have to do that explicitly. For single-file transfers, you might use this approach:

For multi-file transfers (Upload and Download methods), specify ActionOnExistingFiles.ResumeIfPossible option.