> I have a peculiar problem. When my SSL client (in blocking mode) > makes a connection with NonSSL server , the client hangs . I need > the client to terminate the connection with the server if the server > is not ssl enabled one. I tried a lot of options but all failed . > Please give any solutions to make the same
This is not an SSL issue. You would have the same issue with pure TCP if you connect to a server that doesn't respond the way you expect it. Any protocol layered on top of SSL or TCP should explain how to handle this. There may be timeouts. There may be an application-level ping/pong mechanism. Whatever. Just follow the protocol. If the protocol contains no such mechanism, it's broken. You may have to invent one and add it to the protocol. A simple one would be to break the connection if you see no traffic for more than a particular amount of time. This doesn't work in protocols where long period of silence are normal, in which case you need something more sophisticated. DS ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]