Hello!

I've spend some time on fixing the Perl openssl binding Net::SSLeay
for non-blocking IO usage. I was working on the requirement of
passing the same arguments to SSL_read and SSL_write on retries.

Then someone told me that he read the openssl code (i guess it was the
latest version), and doesn't think that SSL_read needs the same
arguments, as the man page says:

    When an SSL_read() operation has to be repeated because of 
SSL_ERROR_WANT_READ
    or SSL_ERROR_WANT_WRITE, it must be repeated with the same arguments.

I'm having a hard time to understand the openssl code to confirm that
SSL_read doesn't need the same buffer on retries.

And on the other hand: A friend of mine told me that he used SSL_read on
non-blocking sockets, and he got bad results from not passing the
same buffers to SSL_read on retries.

So my question is: Does someone know whether that requirement is still
in the (current) openssl code? And could the requirement even be dropped
(from the man page)?


Thanks,
   Robin
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to