Re: About non-blocking IO

2007-03-18 Thread Robin Redeker
On Sat, Mar 17, 2007 at 09:36:45PM -0700, David Schwartz wrote: Could you please tell me where in the manual pages or in which document that is documented? That would be really helpful. Didn't this all start because you didn't trust the documentation? I do trust the documentation. Others

Re: About non-blocking IO

2007-03-18 Thread Robin Redeker
On Mon, Mar 19, 2007 at 01:55:24AM +, Darryl Miles wrote: Personally I can't see how SSL_read() was much of an issue, if it returns data into the application suppled buffer it returns a value 0 or if no data was returned it returns =0. And if it returns 0 you have to check for

Re: About non-blocking IO

2007-03-17 Thread Robin Redeker
On Fri, Mar 16, 2007 at 01:51:15PM -0700, David Schwartz wrote: 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

Re: About non-blocking IO

2007-03-17 Thread Robin Redeker
On Sat, Mar 17, 2007 at 10:21:48AM -0700, David Schwartz wrote: Thos are for SSL_write as far as I understand the manpage ode SSL_CTX_set_mode. What about SSL_read? My question was about SSL_read. Robin Those two flags resolve all the issues. Could you please tell me where in the

About non-blocking IO

2007-03-16 Thread Robin Redeker
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