> Thanks for the info.  One last question :)  So if I am using blocking
> sockets, than would I ever get a WANT_WRITE error?  I'm guessing no?

        No, it should just block until it gets some application data or can send
the application data.

> But if I am using BIO pairs, and blocking sockets, is it possible to get a
> WANT_WRITE error?

        Yes. Though why you would use BIO pairs with blocking sockets, I can't
imagine. I'm guessing you meant non-blocking sockets. With BIO pairs, you
get these errors all the time. The do BIO pairs properly, you need to do the
four things I mentioned in my first response, and it works best if you make
no assumptions about the relationships between those four things.

        The simplest approach is a loop that tries to do all four of those 
things
and returns as soon as one  pass through the loop makes no forward progress.
Any time something changes, you call the loop. A change could be the socket
getting a 'read' hit on select, or new application data to be encrypted when
there was none before.

        DS


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

Reply via email to