Java app on Windows: ssh.exe hangs if connection unsuccessful
I've been trying to find a solution to my problem on the web, but have been unsuccessful so far. I'm hoping someone here may have seen this problem before and know the answer...
My java application runs on Unix and Windows, but the problem is specific to Windows. The app occasionally is asked to connect to a remote server (UNIX) using RSH or SSH to run a command. If the app tries to establish an SSH connection to a remote server and fails, the ssh.exe process continues to run (as seen in task manager). I then need to stop the process in the task manager to remove it.
If the SSH connection is successful and my application is able to execute a command on the remote system, the ssh.exe process stops on its own. This would be the desired behavior for a failed connection.
We have seen this problem using SFU and using CYGWIN.
Is this a Windows issue or a JRE issue? If it's a JRE issue, then I need to figure out how to code to solve the problem.
Thanks for any help you can throw my way.