>1. Decide that multiple locking is a bug (as the stuff in crypto/threads
>suggests) and fix any cases found.
This is the best solution.
>Under Linux this is just a case of
>using recursive mutexes, on other platforms this may not so easy.
Recursive mutexes are a bad thing. They were invented
Dr Stephen Henson wrote:
>
> A recent problem wrt multithreaded SSL use was causing a deadlock under
> Unix after some use. This was traced to a call in SSL_CTX_add_session()
> which locks a mutex and then calls SSL_CTX_remove_session() which also
> tries to lock the same mutex, in the same threa
A recent problem wrt multithreaded SSL use was causing a deadlock under
Unix after some use. This was traced to a call in SSL_CTX_add_session()
which locks a mutex and then calls SSL_CTX_remove_session() which also
tries to lock the same mutex, in the same thread.
On this platform (Linux) the typ