Author: jfrederic.clere(a)jboss.com
Date: 2008-06-03 16:34:37 -0400 (Tue, 03 Jun 2008)
New Revision: 1652
Modified:
trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c
Log:
Don't use scpool if it is not here.
Modified: trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c
===================================================================
--- trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c 2008-06-03 15:23:05 UTC
(rev 1651)
+++ trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c 2008-06-03 20:34:37 UTC
(rev 1652)
@@ -294,11 +294,13 @@
* struct like hostname and addr (at least in the case where we have
* keepalive connections that timed out).
*/
+#if AP_MODULE_MAGIC_AT_LEAST(20051115,13)
apr_pool_create(&scpool, ctx);
apr_pool_tag(scpool, "proxy_conn_scpool");
+ conn->scpool = scpool;
+#endif
conn->pool = ctx;
- conn->scpool = scpool;
conn->worker = worker;
#if APR_HAS_THREADS
conn->inreslist = 1;
Show replies by date