Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
6.8k views
in .NET FTP by (560 points)
Hello ,

I have an application(service) that upload multiple files to a server.
I tried both Upload & UploadMultiple methods , in each case it costs at about 1 seconds per file.
For a 1000 files upload operation , it costs 1000 sec ~= 20 min.

Is there a way(setting) for faster upload operations ? My settings is below :

// Connection Settings
connection = new SecureFTPConnection();
connection.Protocol = FileTransferProtocol.SFTP;
connection.AuthenticationMethod = EnterpriseDT.Net.Ssh.AuthenticationType.Password;
connection.ServerValidation = SecureFTPServerValidationType.None;
connection.ServerAddress = this.host;
connection.ServerPort = this.port;
connection.UserName = this.username;
connection.Password = this.password;
connection.Connect();

// Upload Operation
ftpclient.UploadMultiple("LocalDir", "ServerDir", "*.*", true);

Thank u for any suggesstion !!!

6 Answers

0 votes
by (51.6k points)
Here are some things that may help:
  • enable the concurrent-transfer feature (ConcurrentTransferSettings property)
  • enable compression (CompressionPreferred property)
  • use AES128 (PreferredCipherAlgorithms property)
  • set max. packet-size to 64k (SSHMaxPacketSize property)
  • set the transfer buffer-size to 64k (TransferBufferSize property)


- Hans (EnterpriseDT)
0 votes
by (560 points)
Thank you Hans ,

I ' ll try and feedback you
0 votes
by (560 points)
By the way ,

I can not find these two properties Hans , could you please tell me how can i use these ? (any code snippet)

enable the concurrent-transfer feature (ConcurrentTransferSettings property)
enable compression (CompressionPreferred property)
0 votes
by (51.6k points)
These were added fairly recently. You probably need to upgrade.

- Hans (EnterpriseDT)
0 votes
by (560 points)
I use 5.0.6.0 version ,

isn't it possible to iplement concurrent transfers with this version ? With ThreadPool etc ?
0 votes
by (51.6k points)
OK. The feature was added in 7.0. Sure, you can definitely implement it yourself by using multiple threads.

- Hans (EnterpriseDT)

Categories

...