You are misinterpreting the meaning of BIO_should_retry(). What it is
telling you is that you should wait until a certain condition is
satisfied on the underlying transport (SOCKET in this case) before you
retry. You can retry immediately but that is likely to be inefficient.
Is it harmful if try immediately again?
In the first case the I/O special is probably telling you that you
should wait until the SOCKET has connected.
Ahhh... these are just the kind of advices I wanted to hear, but how
do I do it? What would be the best way to see if connection is ready? I
guess Sleep(1000) and connect again isn't the best method available? :-)
Though it works...
After that BIO_should_read() is saying you should wait until the SOCKET
has data available before retrying. It isn't telling you to just call
BIO_read()!
Okay. That's good to know. I thought it was a commad for me to make
a read attempt.
Your select() call is also waiting to see when data can be read *or*
written. Therefore it will probably return immediately telling you its
OK to write data. What you should actually be doing is waiting until the
relevant condition is satisfied: is it wants to read then wait until
data is available etc.
And that is done with select? And write mask being NULL?
Thank you! VW
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]