Incorrect State Reporting (General questions)
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
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
Jason,
I think I replied to your ticket about this already, do you use blocking or nonblocking mode?
Kreso