Incorrect State Reporting (General questions)

by Jason @, (7044 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.

locked

Re: Incorrect State Reporting

by Jason @, (7044 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

locked

Re: Incorrect State Reporting

by Jasmine, (7044 days ago) @ Jason

Jason,

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

Kreso

locked