0 votes
by (120 points)
edited

HI,

Can you tell me what the timeout settings are in the sftp component? We have a very slow sftp server and want to make sure that we won't run into trouble with connection or authentication timeouts. I tried to find out if timeouts are configurable, but was unable to find any information.

Thanks.

Applies to: Rebex SFTP

2 Answers

0 votes
by (134k points)
edited

The default timeout is 60 seconds - this should be more than enough even for very slow servers. This value is configurable using Sftp object's Timeout property that accepts a milisecond value:

C#:

Sftp client = new Sftp();
client.Timeout = 120*000; //set timeout to 120 seconds
client.Connect(hostname);

VB.NET:

Dim client As New Sftp
client.Timeout = 120*000 //set timeout to 120 seconds
client.Connect(hostname)
0 votes
by (140 points)
edited

120*000 is 0 not 120 seconds!

...