[gnutls-devel] [TLS] multiple clients in one process (was: Re: Deployment ... Re: This working group has failed)
Nikos Mavrogiannopoulos
nmav at gnutls.org
Sat Nov 30 10:08:04 CET 2013
On Fri, 2013-11-29 at 18:10 -0600, Nico Williams wrote:
> 4) DO NOT USE ELF .ini sections for thread-safe initialization, not if
> the .init section has any dependencies on any other objects/libraries
> than the C run-time. There's no canonical ELF .ini section load/run
> order. On Windows you might use DllMain, but I wouldn't -- just build
> portable once-init infrastructure and use it everywhere.
Have you considered or tried using that approach in your branch of
openssl and backed off? If dependencies are avoided it looks like an
ideal fix, especially if you consider that a global initialization
function would do much more than just initializing mutexes (e.g.
precalculations or CPU type detection).
regards,
Nikos
More information about the Gnutls-devel
mailing list