[Pkg-fedora-ds-maintainers] [libapache2-mod-nss] 124/156: Only clear the SSL Session Cache when shutting the server down.

Timo Aaltonen tjaalton-guest at moszumanska.debian.org
Wed Jul 2 13:55:35 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 399685fc1bfaeb6bcb0e5879872338981c7453b7
Author: Rob Crittenden <rcritten at redhat.com>
Date:   Fri Oct 11 17:41:56 2013 -0400

    Only clear the SSL Session Cache when shutting the server down.
    
    This was causing an FD leak.
    
    BZ 784548
---
 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 72eb830..a7186bb 100644
--- a/nss_engine_init.c
+++ b/nss_engine_init.c
@@ -1241,9 +1241,6 @@ apr_status_t nss_init_ChildKill(void *data)
     server_rec *s;
     int shutdown = 0;
 
-    /* Clear any client-side session cache data */
-    SSL_ClearSessionCache();
-
     /*
      * Free the non-pool allocated structures
      * in the per-server configurations
@@ -1286,6 +1283,9 @@ apr_status_t nss_init_ChildKill(void *data)
     }
 
     if (shutdown) {
+        /* Clear any client-side session cache data */
+        SSL_ClearSessionCache();
+
         if (CERT_DisableOCSPDefaultResponder(CERT_GetDefaultCertDB())
             != SECSuccess) {
             ap_log_error(APLOG_MARK, APLOG_ERR, 0, 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