When the handshake check that is added in PR #17 fails, then a ClientConnectionException is thrown, and passed up to the client in ovirt-engine.
But as the connection is in some invalid state, but not disconnected, it for example causes there are no heartbeats anymore.
This fix also closes the connection when there is some ClientConnectionException in the postConnect stage.
it's a risky change. but we always had some mysterious situations when host monitoring stopped for no obvious reason. i'd be in favor of merging it. worst case we'll revert...
When the handshake check that is added in PR #17 fails, then a ClientConnectionException is thrown, and passed up to the client in ovirt-engine. But as the connection is in some invalid state, but not disconnected, it for example causes there are no heartbeats anymore.
This fix also closes the connection when there is some ClientConnectionException in the postConnect stage.
This should fix #27