Hi John, On Wed, May 07, 2014 at 06:14:13PM +0200, John-Paul Bader wrote: > Ok, > > > I have just built haproxy with your patches like this: > > gmake TARGET=freebsd USE_PCRE=1 USE_OPENSSL=1 USE_ZLIB=1 > > When trying to start haproxy it failed with: > > [ALERT] 126/160108 (25333) : Unable to allocate SSL session cache. > [ALERT] 126/160108 (25333) : Fatal errors found in configuration. > /usr/local/etc/rc.d/haproxy: WARNING: failed precmd routine for haproxy > > Without the patches, haproxy is starting. (...)
That's a *very* good news! Emeric is currently working on an alternate locking mechanism which would work only using spinlocks and no pthreads. The principle is that accesses to the cache are so rare (once or twice per SSL connection) that there's almost never any collision (confirmed by the fact that it requires seconds to minutes for a crash to happen) and it's worthless to rely on heavy non-portable mechanisms when a simple hand-crafted spinlock will do the job fine with no overhead. So... stay tuned, I think Emeric will soon have something to propose you to test :-) Cheers, Willy