Re: can non-blocking SSL_read() and SSL_write() be interleaved?

2013-10-14 Thread Darryl Miles
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 non-blocking SSL_read() and SSL_write() be interleaved?

2013-10-14 Thread Dave Mitchell
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();