On Thu, Jul 03, 2003 at 10:47:27PM -0400, Thomas J. Hruska wrote:
> For non-blocking BIOs (in this case, non-blocking sockets), the
> documentation is unclear as to whether or not a second call to
> SSL_shutdown() will block:
> 
> "The second call will make SSL_shutdown() wait for the peer's "close
> notify" shutdown alert.  On success, the second call to SSL_shutdown() will
> return with 1."
> 
> What will happen if the BIO is non-blocking?

SSL_shutdown() will return but will indicate with "WANT_READ" or "WANT_WRITE"
that the call has not been completeed and you have to call it again.

Best regards,
        Lutz
-- 
Lutz Jaenicke                             [EMAIL PROTECTED]
http://www.aet.TU-Cottbus.DE/personen/jaenicke/
BTU Cottbus, Allgemeine Elektrotechnik
Universitaetsplatz 3-4, D-03044 Cottbus
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to