MCPcopy Create free account
hub / github.com/apache/httpd / proxy_pre_config

Function proxy_pre_config

modules/proxy/mod_proxy.c:3334–3351  ·  view source on GitHub ↗

* This routine is called before the server processes the configuration * files. */

Source from the content-addressed store, hash-verified

3332 * files.
3333 */
3334static int proxy_pre_config(apr_pool_t *pconf, apr_pool_t *plog,
3335 apr_pool_t *ptemp)
3336{
3337 apr_status_t rv = ap_mutex_register(pconf, proxy_id, NULL,
3338 APR_LOCK_DEFAULT, 0);
3339 if (rv != APR_SUCCESS) {
3340 ap_log_perror(APLOG_MARK, APLOG_CRIT, rv, plog, APLOGNO(02480)
3341 "failed to register %s mutex", proxy_id);
3342 return 500; /* An HTTP status would be a misnomer! */
3343 }
3344
3345 APR_OPTIONAL_HOOK(ap, status_hook, proxy_status_hook, NULL, NULL,
3346 APR_HOOK_MIDDLE);
3347 /* Reset workers count on graceful restart */
3348 proxy_lb_workers = 0;
3349 set_worker_hc_param_f = APR_RETRIEVE_OPTIONAL_FN(set_worker_hc_param);
3350 return OK;
3351}
3352static void register_hooks(apr_pool_t *p)
3353{
3354 /* Only the mpm_winnt has child init hook handler.

Callers

nothing calls this directly

Calls 1

ap_mutex_registerFunction · 0.85

Tested by

no test coverage detected