Dave Mitchell wrote:
> Can calls to non-blocking SSL_read() and SSL_write() be interleaved?
>
> I'm doing select() / event driven IO, and using a BIO pair to handle the
> underlying socket IO myself.
Yes, but not from 2 threads working on the same "SSL *" at the same time.
So your single threa
Can calls to non-blocking SSL_read() and SSL_write() be interleaved?
I'm doing select() / event driven IO, and using a BIO pair to handle the
underlying socket IO myself.
A typical sequence might be:
SSL_read(ssl, read_buf, read_size); /* returns e.g. SSL_ERROR_WANT_READ */
select();