Incorrect State Reporting - WeOnlyDo Discussion board

Incorrect State Reporting (General questions)

by Jason, Thursday, January 19, 2006, 19:26 (6882 days ago)

Currently using version 3.0.2.16 of wodSFTP.NET DLL. When trying to
connect, and connection is unsuccessful, the DLL incorrectly reports
the state of the object as still connecting.

Connecting to a custom server built with wodSSHDcom Component.

Example:
[code]
Try
m_SFTP.Connect()
Catch ex as Exception
'Report Error Here
End Try

If m_SFTP.State Disconnected Then
'Enters into this statement even if connect routine
'above reports error
End If
[/code]

The state is NOT reported incorrectly when the error returned from connecting is an authentication error.

The state IS reported incorrectly when the error returned from connecting was that the target machine actively refused the connection.

To duplicate this error, try connecting to a machine which does not have an SSH Server installed or currently running.

Re: Incorrect State Reporting

by Jason, Thursday, January 19, 2006, 19:28 (6882 days ago) @ Jason

Sorry, that If statement should read:

If m_Client.State <> Disconnected Then
'Code gets executed here, even if connect
'throws an error
End If

Re: Incorrect State Reporting

by wodSupport, Thursday, January 19, 2006, 20:55 (6882 days ago) @ Jason

Jason,

I think I replied to your ticket about this already, do you use blocking or nonblocking mode?

Kreso