[Pkg-fedora-ds-maintainers] [libapache2-mod-nss] 83/156: 213081
Timo Aaltonen
tjaalton-guest at moszumanska.debian.org
Wed Jul 2 13:55:31 UTC 2014
This is an automated email from the git hooks/post-receive script.
tjaalton-guest pushed a commit to branch master
in repository libapache2-mod-nss.
commit ff38e91d0bfa650b5ab77378f583243cabcddf0d
Author: rcritten <>
Date: Mon Oct 30 21:12:37 2006 +0000
213081
The way I was using to detect the model being used was incorrect. Now
use the # of threads available. Guaranteed to be 0 for prefork and > 0 for
worker (threaded)
---
nss_engine_init.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/nss_engine_init.c b/nss_engine_init.c
index fa5cd68..c61a11e 100644
--- a/nss_engine_init.c
+++ b/nss_engine_init.c
@@ -142,7 +142,7 @@ static void nss_init_SSLLibrary(server_rec *s, int fipsenabled,
SECStatus rv;
SSLModConfigRec *mc = myModConfig(s);
SSLSrvConfigRec *sc;
- int forked = 0;
+ int threaded = 0;
char cwd[PATH_MAX];
sc = mySrvConfig(s);
@@ -207,8 +207,8 @@ static void nss_init_SSLLibrary(server_rec *s, int fipsenabled,
ap_log_error(APLOG_MARK, APLOG_INFO, 0, s,
"Initializing SSL Session Cache of size %d. SSL2 timeout = %d, SSL3/TLS timeout = %d.", mc->session_cache_size, mc->session_cache_timeout, mc->ssl3_session_cache_timeout);
- ap_mpm_query(AP_MPMQ_IS_FORKED, &forked);
- if (forked)
+ ap_mpm_query(AP_MPMQ_MAX_THREADS, &threaded);
+ if (!threaded)
SSL_ConfigMPServerSIDCache(mc->session_cache_size, (PRUint32) mc->session_cache_timeout, (PRUint32) mc->ssl3_session_cache_timeout, NULL);
else
SSL_ConfigServerSessionIDCache(mc->session_cache_size, (PRUint32) mc->session_cache_timeout, (PRUint32) mc->ssl3_session_cache_timeout, NULL);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-fedora-ds/libapache2-mod-nss.git
More information about the Pkg-fedora-ds-maintainers
mailing list