On Mon, 24 Feb 2003 21:31:38 +0100, Folkert van Heusden wrote:
>Nope, won't work either!
>I had something like:
>
>send:
> pthread_mutex_lock(&lock);
> send
> unlock();
>
>and for receive:
> pthread_mutex_lock(&lock);
> receive
> unlock();
>
>well, you get my point.
>And strangely enough, the connection gets aborted: sometimes
>the next SSL_read and sometimes the next SSL_write fails
>with error 1 (not sure if it was one, cannot check right now).
I can't imagine why that wouldn't work. You do realize that you
can't use blocking sockets with this approach -- blocking while
holding a mutex is bad news.
DS
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]