Re: wodSFTP.NET - WeOnlyDo Discussion board

Re: wodSFTP.NET (General questions)

by tom, Tuesday, March 01, 2011, 15:49 (5019 days ago) @ woddrazen

Tom,


Did you try with Timeout = 0?

Also, what happens if you try same using our samples? You can find samples inside component Samples folder.

Maybe you can try some other SFTP client like FileZilla and see if same issue occur there.


Drazen

Hallo,

I have tried it with a timeout value 0. But i also get this timeout errors.
Than i recompiled your sample application with VS 2010, like my application but i couln't reproduce this timeout error. Maybe a problem in my application.
Now i think i have found the problem

in a loop for different file transfers i had this code:

Sftp1.Hostname = SFTPServerName
Sftp1.Login = SFTPUser
Sftp1.Password = SFTPPW
Sftp1.Authentication = WeOnlyDo.Client.SFTP.Authentications.Password
Sftp1.Encryption = WeOnlyDo.Client.SFTP.Encryptions.Auto
Sftp1.Port = 22
Sftp1.Blocking = True
Sftp1.TransferMode = WeOnlyDo.Client.SFTP.TransferModes.ASCII
Sftp1.Timeout = 0
Sftp1.Connect()

Sftp1.PutFile(strXMLFile, OutputPath & / & OutputFile)

Sftp1.Disconnect()
Sftp1.Dispose()

outside of this loop i had created the instance of the SFTP client. Now i moved this statement:

Sftp1 = New WeOnlyDo.Client.SFTP

also in the loop and the timeout problem seems the be disappeard

thanks

tom


Complete thread: