Connect timeout setting?

0 votes
asked Jun 23, 2010 by Guido (120 points)
edited Mar 31, 2011

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
answered Jun 23, 2010 by Lukas Pokorny (102,250 points)
edited Jun 23, 2010

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
answered Nov 24, 2010 by Andy 1 (140 points)
edited Nov 24, 2010

120*000 is 0 not 120 seconds!

...