SSHClient hangs on reconnect
Posted: Fri 31 Aug 2012 01:40
I'm trying to implement reconnection logic to our client when a connection to the server is lost.
I'm using the SSHClient with SSHChannel along with IBDAC. The connection to the server establishes fine and everything works like a charm.
However, I forcefully shutdown the server to simulate a connection will be lost for the client.
I implemented TScSSHChannel.OnDisconnect event, which is immediately fired. I then attempt to reconnect to the server. I restart the server. The client hangs on the TScSSHClient.Connect();
This line seems to never return. The application needs to be shutdown.
Any suggestions?
I'm using the SSHClient with SSHChannel along with IBDAC. The connection to the server establishes fine and everything works like a charm.
However, I forcefully shutdown the server to simulate a connection will be lost for the client.
I implemented TScSSHChannel.OnDisconnect event, which is immediately fired. I then attempt to reconnect to the server. I restart the server. The client hangs on the TScSSHClient.Connect();
This line seems to never return. The application needs to be shutdown.
Any suggestions?