summaryrefslogtreecommitdiffstats
path: root/modules/proxy/mod_proxy_hcheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/proxy/mod_proxy_hcheck.c')
-rw-r--r--modules/proxy/mod_proxy_hcheck.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/modules/proxy/mod_proxy_hcheck.c b/modules/proxy/mod_proxy_hcheck.c
index 637af645ea..dd2740e81c 100644
--- a/modules/proxy/mod_proxy_hcheck.c
+++ b/modules/proxy/mod_proxy_hcheck.c
@@ -1088,6 +1088,18 @@ static int hc_pre_config(apr_pool_t *pconf, apr_pool_t *plog,
hctp = NULL;
tpsize = HC_THREADPOOL_SIZE;
#endif
+
+ ajp_handle_cping_cpong = APR_RETRIEVE_OPTIONAL_FN(ajp_handle_cping_cpong);
+ if (ajp_handle_cping_cpong) {
+ proxy_hcmethods_t *method = proxy_hcmethods;
+ for (; method->name; method++) {
+ if (method->method == CPING) {
+ method->implemented = 1;
+ break;
+ }
+ }
+ }
+
return OK;
}
static int hc_post_config(apr_pool_t *p, apr_pool_t *plog,
@@ -1144,17 +1156,6 @@ static int hc_post_config(apr_pool_t *p, apr_pool_t *plog,
s = s->next;
}
- ajp_handle_cping_cpong = APR_RETRIEVE_OPTIONAL_FN(ajp_handle_cping_cpong);
- if (ajp_handle_cping_cpong) {
- proxy_hcmethods_t *method = proxy_hcmethods;
- for (; method->name; method++) {
- if (method->method == CPING) {
- method->implemented = 1;
- break;
- }
- }
- }
-
return OK;
}