static const char * const proxy_id = "proxy";
apr_global_mutex_t *proxy_mutex = NULL;
-apr_pool_t *proxy_subpool = NULL;
/*
* A Web proxy module. Stages:
ps->badopt_set = 0;
ps->source_address = NULL;
ps->source_address_set = 0;
- ps->pool = proxy_subpool;
+ apr_pool_create_ex(&ps->pool, p, NULL, NULL);
return ps;
}
ps->proxy_status_set = overrides->proxy_status_set || base->proxy_status_set;
ps->source_address = (overrides->source_address_set == 0) ? base->source_address : overrides->source_address;
ps->source_address_set = overrides->source_address_set || base->source_address_set;
- ps->pool = proxy_subpool;
+ ps->pool = base->pool;
return ps;
}
static const char *set_source_address(cmd_parms *parms, void *dummy,
return 500; /* An HTTP status would be a misnomer! */
}
- apr_pool_create(&proxy_subpool, pconf);
- apr_pool_tag(proxy_subpool, "proxy_pconf_subpool");
APR_OPTIONAL_HOOK(ap, status_hook, proxy_status_hook, NULL, NULL,
APR_HOOK_MIDDLE);
/* Reset workers count on gracefull restart */