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.

asked 23 Jun '10, 09:48

Guido's gravatar image

Guido
161
accept rate: 0%


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)
link

answered 23 Jun '10, 11:08

Lukas%20Pokorny's gravatar image

Lukas Pokorny ♦♦
2.2k18
accept rate: 32%

120*000 is 0 not 120 seconds!

link

answered 24 Nov '10, 19:28

Andy%201's gravatar image

Andy 1
16
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×115
×11

Asked: 23 Jun '10, 09:48

Seen: 1,303 times

Last updated: 31 Mar '11, 03:22