Connection reset while FTP uploading

0 votes
asked Nov 20 by Martin Martinsson (330 points)

Hi,

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?

Reagards
Martin

Applies to: Rebex SFTP, Rebex FTP/SSL

1 Answer

+1 vote
answered 6 days ago by Lukas Pokorny (116,670 points)

Hi,

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: https://www.rebex.net/sftp.net/features/single-file-operations.aspx#resume

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

...