I'm trying to re-use the SSL session.  Works on Linux + Windows, but it
looks as if it still tries to perform a full handshake and hangs when the
same code runs on a Mac.

I'm doing this to the context prior to making connections:

        SSL_CTX_set_session_cache_mode( ctx, SSL_SESS_CACHE_BOTH );

The first SSL connection works fine.  When I attempt to establish the 2nd,
this is how I've attempted to copy the session:

        SSL_SESSION *savedSession = SSL_get1_session( ctrlSSL );
        int rc = SSL_set_session( dataSSL, savedSession );
        rc = SSL_connect( dataSSL );

Can someone let me know...am I doing this correctly?  Is there something
I've missed, or gotten out-of-order?

Or perhaps:  is there a known issue with trying to reuse the ssl session on
a Mac?

I've tried a couple versions of OpenSSL, but they behave the same way.
Currently I've built and am linking against OpenSSL v1.0.1.

Thanks!

Stéphane

Reply via email to