]> git.ipfire.org Git - thirdparty/freeradius-server.git/commit
use a global mutex for TLS, not a per-socket mutex.
authorAlan T. DeKok <aland@freeradius.org>
Thu, 6 Apr 2023 19:24:20 +0000 (15:24 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 6 Apr 2023 19:34:36 +0000 (15:34 -0400)
commitf30bb7672197f0586ab18fd47244be82f6e7655f
treeba6ba7fdc0041b4d63f6283eb0c0a97c7cb84e39
parentd9b58e56b7bd8fe0acd3a8ab08617261d70148b1
use a global mutex for TLS, not a per-socket mutex.

Apparently accessing the SSL_SESSION also requires mutex-protected
access to the underlying SSL_CTX.  So we set a global mutex, which
will slow things down a bit in the contended case.  But it won't
cause blocking issues which stops the server entirely.
src/main/tls_listen.c