Topic "Example of Timeout Value Change"

Author Message
spencet15
[View user's profile]

Joined: 2014-08-06
Posts: 1
Location: CT
I'm trying to override the default timeout value in my SessionOptions code but unable to determine the correct syntax of the timeout setting.

'// setup FTP session options
Dim mySessionOptions As New SessionOptions
With mySessionOptions
.Protocol = Protocol.Sftp
.HostName = FTP.FtpHostName
.UserName = FTP.FtpUserName
.Password = FTP.FtpUserPassword
.GiveUpSecurityAndAcceptAnySshHostKey = True
.Timeout(30)
End With


I've also tried .Timeout = 30 to no avail.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
What language is that? VB.NET, VB, VBA?

With old VB/VBA, you cannot use SessionOptions.Timeout. You have to use SessionOptions.TimeoutInMilliseconds. This is available in 5.5.4 and later only.
See http://winscp.net/tracker/show_bug.cgi?id=1156
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License