I use a Java 1.4.1_01 client to connect to a non-blocking C++ server which uses OpenSSL 0.9.7 (under Cygwin). When I exit the Java client a "close notify" is sent to the server and the connection is closed by the Java client. The server receives the "close notfiy" in SSL_read() which returns 0 (SSL_ERROR_ZERO_RETURN). The server then tries to send its "close notify" to the peer and calls SSL_shutdown(). Now SSL_shutdown() returns 0 so it is called again. It returns 0 again. The server keeps calling SSL_shutdown() endlessly.
The problem is that the server does not detect that the peer closed the socket. How should I detect this? I would have expected that SSL_shutdown() returns 1? TIA, Boris ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]