Work on all servers, not just top-level... Each Vhost has its own context and watchdog instance. We may need to revisit this and have just one instance
@@ -960,7 +960,6 @@ static apr_status_t hc_watchdog_callback(int state, void *data,
workers++;
}
}
- /* s = s->next; */
}
break;
@@ -997,6 +996,7 @@ static int hc_post_config(apr_pool_t *p, apr_pool_t *plog,
"mod_watchdog is required");
return !OK;
}
+ while (s) {
ctx = (sctx_t *) ap_get_module_config(s->module_config,
&proxy_hcheck_module);
@@ -1021,6 +1021,8 @@ static int hc_post_config(apr_pool_t *p, apr_pool_t *plog,
}
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, APLOGNO(03265)
"watchdog callback registered (%s)", HCHECK_WATHCHDOG_NAME);
+ s = s->next;
+ }
return OK;
}
