On Jan 16, 2004, at 5:57 PM, Dr. Stephen Henson wrote:
On Fri, Jan 16, 2004, Joseph Bruni wrote:
After reading the man page for SSL_CTX_set_mode, I have to ask, what happens if you set AUTO_RETRY with a non-blocking socket?
The AUTO_RETRY flag disables a case where the SSL/TLS code would signal a retry even
though the underlying transport did not during a session renegotiation. This is
there to support some applications which brokenly use select() and blocking I/O.
Now you have me curious: What would be a broken use of select and blocking I/O? I use select before a call to SSL_read in order to facilitate a timeout. Is this wrong (or broken)? (If I receive one of the "WANT" errors, I just restart the I/O however.) My program makes the assumption that if it hears nothing on the read side of the socket during a period of time, that something is wrong.
Currently, I don't like the way my I/O loop is working so I'm probably going to switch to non-blocking anyway.
smime.p7s
Description: S/MIME cryptographic signature