Hi, I am experiencing the followings when running my SSL client on nonblocking sockets.
1. SSL_read() fails and SSL_get_error() returns SSL_ERROR_WANT_READ 2. my client program calls SSL_pending() and it returns non-zero. 3. since SSL_pending() is returning non zero, that is data available and my program won't select on the read socket. 4. call SSL_read() again and it returns SSL_ERROR_WANT_READ My question is the SSL_pending() returning of non-zero is misleading. As the subsequent SSL_read() call at step 4 is returning SSL_ERROR_WANT_READ again. So, may be I should not check SSL_pending() when SSL_read() returns SSL_ERROR_WANT_READ? Can someone confirm? Thanks a lot. Patrick ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]