On Wed, Jul 07, 1999 at 10:26:18AM +0200, Juan Pablo Rojas Jimenez wrote:
> Bodo Moeller wrote:
>> When discussing the semantics of SSL_read etc., SSL_pending should
>> also be mentioned, I guess, although I currently can't think of any
>> scenario where you'd really *need* it. SSL_pending tells you that
>> there's still data available for reading that the SSL library has
>> buffered internally.
> doesn't SSL_ERROR_WANT_* mean the same?
No. If SSL_pending returns non-zero, you have a guarantee that the
next call to SSL_read will return data immediately without even doing
I/O. SSL_ERROR_WANT_READ or SSL_ERROR_WANT_WRITE, in contrary, mean
that the SSL library had to do I/O, but the low-level operation did
not complete (no data from the peer is available for reading, or the
TCP write buffers are full).
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]