apr_table_t *tbl;
hm_server_t hmserver;
char *ip;
- hm_ctx_t *ctx = ap_get_module_config(r->server->module_config,
- &heartmonitor_module);
if (strcmp(r->handler, "hearthbeat")) {
return DECLINED;
ap_set_content_length(r, 2);
ap_rprintf(r, "OK");
ap_rflush(r);
-
+
return OK;
}
static const char *cmd_hm_maxworkers(cmd_parms *cmd,
void *dconf, const char *data)
{
- apr_pool_t *p = cmd->pool;
- hm_ctx_t *ctx =
- (hm_ctx_t *) ap_get_module_config(cmd->server->module_config,
- &heartmonitor_module);
const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY);
if (err != NULL) {
void *data;
apr_size_t size;
int num;
- lb_hb_ctx_t *ctx =
- (lb_hb_ctx_t *) ap_get_module_config(s->module_config,
- &lbmethod_heartbeat_module);
+
apr_pool_userdata_get(&data, userdata_key, s->process->pool);
if (!data) {
/* first call do nothing */