On Wed, Aug 08, 2001 at 10:58:54AM +0100, Garrard Cole wrote:
> At 18:52 07/08/01 +0200, you wrote:
> >On Tue, Aug 07, 2001 at 05:28:25PM +0100, Garrard Cole wrote:
> >> I include a code fragment below for the server accept function, which is
> >> based on some OpenSSL sample code.
> >> 
> >> I dont know how to resolve this. Any suggestions? Is the error handling
> >> correct?
> >
> >No. Please check out SSL_get_error() with all options, especially
> >SSL_ERROR_ZERO_RETURN.
> >
> 
> This conflicts with the actions described in the notes for SSL_accept with
> non-blocking sockets. Are these notes incorrect or incomplete?

In which sense? I wrote the manual page for SSL_accept. It more or less says:
"If SSL_accept returns with <=0, call SSL_get_error to find out the reason"
"If SSL_get_error() returns WANT_READ or WANT_WRITE, call SSL_accept() again,
otherwise evalute the output of SSL_get_error() (and ERR_get_error())"

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

Reply via email to