Topic "Example of Timeout Value Change"

Author Message
[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
End With

I've also tried .Timeout = 30 to no avail.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
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.
Martin Prikryl

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License