You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rp...@apache.org on 2007/12/15 17:19:38 UTC

svn commit: r604449 - /httpd/httpd/trunk/modules/proxy/proxy_util.c

Author: rpluem
Date: Sat Dec 15 08:19:36 2007
New Revision: 604449

URL: http://svn.apache.org/viewvc?rev=604449&view=rev
Log:
* Tag the pools appropriately to ease memory debugging.

Modified:
    httpd/httpd/trunk/modules/proxy/proxy_util.c

Modified: httpd/httpd/trunk/modules/proxy/proxy_util.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/proxy_util.c?rev=604449&r1=604448&r2=604449&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/proxy_util.c (original)
+++ httpd/httpd/trunk/modules/proxy/proxy_util.c Sat Dec 15 08:19:36 2007
@@ -1349,6 +1349,7 @@
      * it can be disabled.
      */
     apr_pool_create(&pool, p);
+    apr_pool_tag(pool, "proxy_worker_cp");
     /*
      * Alloc from the same pool as worker.
      * proxy_conn_pool is permanently attached to the worker.
@@ -1647,6 +1648,7 @@
         conn->pool = p;
         conn->worker = worker;
         apr_pool_create(&(conn->scpool), p);
+        apr_pool_tag(conn->scpool, "proxy_conn_scpool");
     }
 #if APR_HAS_THREADS
     if (worker->hmax && worker->cp->res) {
@@ -1720,6 +1722,7 @@
      * when disconnecting from backend.
      */
     apr_pool_create(&ctx, pool);
+    apr_pool_tag(ctx, "proxy_conn_pool");
     /*
      * Create another subpool that manages the data for the
      * socket and the connection member of the proxy_conn_rec struct as we
@@ -1728,6 +1731,7 @@
      * keepalive connections that timed out).
      */
     apr_pool_create(&scpool, ctx);
+    apr_pool_tag(scpool, "proxy_conn_scpool");
     conn = apr_pcalloc(pool, sizeof(proxy_conn_rec));
 
     conn->pool   = ctx;