RE: Multiple mutex locking...

1999-04-30 Thread Salz, Rich
>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

Re: Multiple mutex locking...

1999-04-30 Thread Ben Laurie
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

Multiple mutex locking...

1999-04-29 Thread Dr Stephen Henson
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