Hi, I have an SSL server that runs fine on Windows and on Linux. However on Solaris and IBM platforms, if the client is a windows one, my server crashes when the client exits.
I was able to track the crash to the second call of SSL_shutdown below in my server code: r=SSL_shutdown(ssl); if(!r){ shutdown(s,1); r=SSL_shutdown(ssl); } Anyone knows why would SSL_shutdown crash? The OpenSSL documentation says this about the return value of SSL_shutdown: *0* The shutdown is not yet finished. Call SSL_shutdown() for a second time, if a bidirectional shutdown shall be performed. The output of SSL_get_error(3)<http://www.openssl.org/docs/ssl/SSL_get_error.html#>may be misleading, as an erroneous SSL_ERROR_SYSCALL may be flagged even though no error occurred. I did verify that at the crash time, the returned value is 0. Once the second SSL_shutdown is called then the server is dead. If the client is anything other than a windows client, then this problem does not occur!!... I am using : openssl-0.9.8e Thanks for any help.