> Is it "safe" to put just SSL_read() and SSL_write() inside the > non-blocking BIO regions and leaving SSL_accept(), SSL_connect(), > SSL_shutdown(), accept(), socket(), bind(), listen(), connect(), > shutdown(), close(), SSL_CTX_new(meth), SSL_new(ctx), > SSL_CTX_free(ctx), etc. in the blocking BIO regions? > > David Schwartz are you listening I hope?
I am not 100% sure I understand your question. But it should be perfectly safe and legal to create a socket in blocking mode, perform blocking operations to establish the connection, then switch the socket to non-blocking mode and use the connection in non-blocking mode with non-blocking operations. It should similarly be safe to set the socket to blocking mode and then tear down the connection with blocking operations. The only problem I can think of would be that while the socket is blocking, operations can always block. However, if you only set the socket blocking and call functions that you want to block, I can't see any possible problem. I have never done anything like this, however. DS ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]