On 27 Jun, Lenny Foner wrote:

>     If I understand you correctly, you are suggesting that I put wrappers around
>     SSL_write and SSL_read that make them exclusive operations.  This
>     effectively makes the thing single-threaded again.  I need to have blocking
> [you mean, "nonblocking"?]
>     Reads in effect all the time on one thread while I'm writing on another.  I
>     can't very well single-thread the reads and writes.

No, he means that you should make a lock for each SSL structure, store
it in the ex_data member and write SSL_read and SSL_write wrappers that
claim/release that lock with each call. That way only concurrent
accesses to the _same_ SSL structure will be serialized.

Taral

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

Reply via email to