Skip to content

Commit

Permalink
Merge pull request #162 from FrendsPlatform/issue-161
Browse files Browse the repository at this point in the history
SFTP.DownloadFiles - Added operationTimeout property
  • Loading branch information
Svenskapojkarna authored Sep 12, 2023
2 parents e647bfa + ba471e8 commit 76152e6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Frends.SFTP.DownloadFiles/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [2.7.1] - 2023-09-08
### Added
- Added SFTPClient.OperationTimeout which should cause timeout during operations if the Task becomes stuck.

## [2.7.0] - 2023-06-07
### Added
- [Breaking] Added new parameter for keyboard-interactive authentication where users can add prompts and responses.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public FileTransferResult Run()

client.ConnectionInfo.Timeout = TimeSpan.FromSeconds(_batchContext.Connection.ConnectionTimeout);
client.KeepAliveInterval = TimeSpan.FromMilliseconds(_batchContext.Connection.KeepAliveInterval);
client.OperationTimeout = TimeSpan.FromSeconds(_batchContext.Connection.ConnectionTimeout);

client.BufferSize = _batchContext.Connection.BufferSize * 1024;

Expand Down Expand Up @@ -429,8 +430,6 @@ private void CheckServerFingerprint(SftpClient client, string expectedServerFing

private Tuple<List<FileItem>, bool> ListSourceFiles(SftpClient client, Source source, CancellationToken cancellationToken)
{
//SetCurrentState(TransferState.CheckSourceFiles, "Checking source files.");

var fileItems = new List<FileItem>();

if (_filePaths != null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<AssemblyName>Frends.SFTP.DownloadFiles</AssemblyName>
<RootNamespace>Frends.SFTP.DownloadFiles</RootNamespace>

<Version>2.7.0</Version>
<Version>2.7.1</Version>
<Authors>Frends</Authors>
<Copyright>Frends</Copyright>
<Company>Frends</Company>
Expand Down

0 comments on commit 76152e6

Please sign in to comment.