Word on the street is that Amir Amit said:
> when I run SSL_read on a socket (as the client), where the server is
> down, SSL_read returns with 0 - as there where no bytes to read from
> socket. This is not true - the server is down and there will never be
> something to read from server. Because the SSL_read command is non
> blocking and is in a loop until the buffer is read - the resault is
> endless loop.
> 
> Can anyone suggest a methood to check whether the SSL_read returns 0
> because there is nothing to read or because socket is broken?

Look at apps/s_client.c - I think what you're looking for is SSL_get_error

Skye

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to