> In the non-blocking mode, is there a better way than watch return value of > BIO_do_accept() in a loop ? > > Is there a way to be notified when a handshake is initiated from > the client > ? A kind of "WAITINCOMINGHANDSHAKE" which have a timeout ? Or > nothing else ? > > The OpenSSL documentation tells "calls to BIO_do_accept() will await an > incoming connection, or request a retry in non blocking mode." This > indicate that a retry must be done but it's not what I looking for.
Why are you operating in non-blocking mode if you want to block until things happen? If you want to block until something happens, that's what blocking mode is for. It's not clear exactly what you're doing, but if you're calling BIO_do_accept just as a wrapper for 'accept', then you can check for readability on the socket before calling 'accept' again. BIO_do_accept will not succeed until the listening socket is readable. You can block for readability by calling 'accept', 'poll', or whatever is appropriate on your platform. DS ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]