httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r630805 - /httpd/httpd/trunk/modules/ssl/ssl_scache.c
Date Mon, 25 Feb 2008 10:56:42 GMT
Author: jorton
Date: Mon Feb 25 02:56:37 2008
New Revision: 630805

URL: http://svn.apache.org/viewvc?rev=630805&view=rev
Log:
* modules/ssl/ssl_scache.c (ssl_scache_init): Reformat
code and update the comment.   No functional change.

Modified:
    httpd/httpd/trunk/modules/ssl/ssl_scache.c

Modified: httpd/httpd/trunk/modules/ssl/ssl_scache.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ssl/ssl_scache.c?rev=630805&r1=630804&r2=630805&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/ssl/ssl_scache.c (original)
+++ httpd/httpd/trunk/modules/ssl/ssl_scache.c Mon Feb 25 02:56:37 2008
@@ -41,18 +41,19 @@
 {
     SSLModConfigRec *mc = myModConfig(s);
     apr_status_t rv;
-
-    /* ### push this up into scache_init??? */
-    {
-        void *data;
-        const char *userdata_key = "ssl_scache_init";
-
-        apr_pool_userdata_get(&data, userdata_key, s->process->pool);
-        if (!data) {
-            apr_pool_userdata_set((const void *)1, userdata_key,
-                                  apr_pool_cleanup_null, s->process->pool);
-            return;
-        }
+    void *data;
+    const char *userdata_key = "ssl_scache_init";
+    
+    /* The very first invocation of this function will be the
+     * post_config invocation during server startup; do nothing for
+     * this first (and only the first) time through, since the pool
+     * will be immediately cleared anyway.  For every subsequent
+     * invocation, initialize the configured cache. */
+    apr_pool_userdata_get(&data, userdata_key, s->process->pool);
+    if (!data) {
+        apr_pool_userdata_set((const void *)1, userdata_key,
+                              apr_pool_cleanup_null, s->process->pool);
+        return;
     }
 
     /*



Mime
View raw message