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

Function proxy_http_post_config

modules/proxy/mod_proxy_http.c:2106–2125  ·  view source on GitHub ↗

post_config hook: */

Source from the content-addressed store, hash-verified

2104
2105/* post_config hook: */
2106static int proxy_http_post_config(apr_pool_t *pconf, apr_pool_t *plog,
2107 apr_pool_t *ptemp, server_rec *s)
2108{
2109
2110 /* proxy_http_post_config() will be called twice during startup. So, don't
2111 * set up the static data the 1st time through. */
2112 if (ap_state_query(AP_SQ_MAIN_STATE) == AP_SQ_MS_CREATE_PRE_CONFIG) {
2113 return OK;
2114 }
2115
2116 ap_proxy_clear_connection_fn =
2117 APR_RETRIEVE_OPTIONAL_FN(ap_proxy_clear_connection);
2118 if (!ap_proxy_clear_connection_fn) {
2119 ap_log_error(APLOG_MARK, APLOG_EMERG, 0, s, APLOGNO(02477)
2120 "mod_proxy must be loaded for mod_proxy_http");
2121 return !OK;
2122 }
2123
2124 return OK;
2125}
2126
2127static void ap_proxy_http_register_hook(apr_pool_t *p)
2128{

Callers

nothing calls this directly

Calls 2

ap_state_queryFunction · 0.85
ap_log_errorFunction · 0.50

Tested by

no test coverage detected