Author: jfrederic.clere(a)jboss.com
Date: 2008-05-30 11:34:33 -0400 (Fri, 30 May 2008)
New Revision: 1644
Modified:
trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c
Log:
Well that is using prefork() but httpd will core otherwise.
Modified: trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c
===================================================================
--- trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c 2008-05-30 13:02:54 UTC
(rev 1643)
+++ trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c 2008-05-30 15:34:33 UTC
(rev 1644)
@@ -714,7 +714,11 @@
{
/* create the new connection if the previous was destroyed */
if (!worker->cp->conn) {
- connection_constructor((void **)&conn, worker, worker->cp->pool);
+ /* XXX: What appends is worker->cp->pool is NULL */
+ if (worker->cp->pool)
+ connection_constructor((void **)&conn, worker,
worker->cp->pool);
+ else
+ rv = APR_ENOPOOL;
}
else {
conn = worker->cp->conn;
Show replies by date