Move to openssl-users...

Xavier Roques wrote:
> 
> hy,
> 
> I have some questions.
> 
> I'm using SSL with asynchronous sockets.
> 
> So, when I want to receive data, I call select and SSL_READ.
> 
> But sometimes, even if my select is OK, SSL_READ return SSL_ERROR_WANT_READ.
> 

That's normal behaviour. Just because select indicates that data can be
read from the underlying transport there is no guarantee that SSL_read
will return any data. This could be for several reasons: a complete
packet may not be available (so data cannot be returned to the
application until more has been read) or a handshake may be taking
place.

Steve.
-- 
Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED] 
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the   OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.

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

Reply via email to