Java's TLS not compatible with OpenSSL's TLS?

2003-02-23 Thread Boris Schaeling
I initialize OpenSSL 0.9.7 in a non-blocking C++ server like this: SSL_METHOD *method = TLSv1_method(); SSL_CTX CTX = SSL_CTX_new(method); A Java 1.4.1_01 client is initialized like that: SSLContext ctx = SSLContext.getInstance("TLSv1"); When the Java client connects to the server SSL_accept()

How to detect a closed socket?

2003-02-23 Thread Boris Schaeling
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