On Sun, May 11, 2014 at 12:19:45AM +0400, Dmitry Sivachenko wrote: > > On 07 ?????? 2014 ??., at 18:24, Emeric Brun <[email protected]> wrote: > > > > Hi All, > > > > I suspect FreeBSD to not support process shared mutex (supported in both > > linux and solaris). > > > > I've just made a patch to add errors check on mutex init, and to fallback > > on SSL private session cache in error case. > > > Hello, > > BTW, nginx does support shared SSL session cache on FreeBSD (probably by > other means). > May be it is worth to borrow their method rather than falling back to private > cache?
We finally ended up getting rid of pthreads there and simply using spinlocks. The difference of performance is not even measurable since the cache is not used that often. Willy

