--- proxy_util-old.c 2005-11-10 07:20:05.000000000 -0800 +++ proxy_util.c 2006-04-05 21:09:13.000000000 -0700 @@ -1657,6 +1657,7 @@ worker->hmax, worker->ttl, connection_constructor, connection_destructor, worker, worker->cp->pool); +ap_log_error(APLOG_MARK, APLOG_ERR, 0, s, "0: worker->hmax: %d, worker->cp->res: %s", worker->hmax, (worker->cp->res ? "not null" : "null")); apr_pool_cleanup_register(worker->cp->pool, (void *)worker, conn_pool_cleanup, @@ -1729,18 +1730,22 @@ } } #if APR_HAS_THREADS +ap_log_error(APLOG_MARK, APLOG_ERR, 0, s, "1: worker->hmax: %d, worker->cp->res: %s", worker->hmax, (worker->cp->res ? "not null" : "null")); if (worker->hmax && worker->cp->res) { rv = apr_reslist_acquire(worker->cp->res, (void **)conn); +ap_log_error(APLOG_MARK, APLOG_ERR, 0, s, "2: calling apr_res_list_acquire conn"); } else #endif { /* create the new connection if the previous was destroyed */ - if (!worker->cp->conn) + if (!worker->cp->conn) { connection_constructor((void **)conn, worker, worker->cp->pool); - else { +ap_log_error(APLOG_MARK, APLOG_ERR, 0, s, "2: called connection_constructor"); + } else { *conn = worker->cp->conn; worker->cp->conn = NULL; +ap_log_error(APLOG_MARK, APLOG_ERR, 0, s, "2: used conn = worker->cp->conn"); } rv = APR_SUCCESS; }