Just as a follow-up to my own post. Here's some of the strange
behaviour I'm seeing:

 - I call SSL_read() which returns -1

 - I call SSL_get_error() which returns SSL_ERROR_WANT_READ

 - I call select() to wait for readability with a timeout of
   30 seconds. It returns quickly indicating readability.

 - I call SSL_read() which returns -1

 - I call SSL_get_error() which again returns SSL_ERROR_WANT_READ.

Shouldn't the return from select() have guaranteed that I
won't get another SSL_ERROR_WANT_READ spit back at me?





At 01:18 p.m. 04/11/2000, Bill Klein wrote:
>Hi all,
>
>I'm trying to get a simple nonblocking client program working
>with OpenSSL (using select()), but am getting inconsistent
>results. What is the correct usage of select() in relation to
>SSL_connect(), SSL_read(), and SSL_write() (and any others where
>its relevant)? Also, is there a sample program out there that
>demonstrates this?
>
>Thanks!
>
>-Bill Klein <[EMAIL PROTECTED]>
>
>
>______________________________________________________________________
>OpenSSL Project                                 http://www.openssl.org
>User Support Mailing List                    [EMAIL PROTECTED]
>Automated List Manager                           [EMAIL PROTECTED] 


-Bill Klein <[EMAIL PROTECTED]>


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

Reply via email to