MP_TRACE_h(MP_FUNC, "%s handler %s configured (connection)\n", type, handlers[i]->name);
static int modperl_filter_register_connection(conn_rec *c,                                              int idx,                                              const char *name,                                              filter_add_t addfunc,                                              const char *type){    modperl_config_dir_t *dcfg =        modperl_config_dir_get_defaults(c->base_server);    MpAV *av;    if ((av = dcfg->handlers_per_dir[idx])) {        modperl_handler_t **handlers = (modperl_handler_t **)av->elts;        int i;        for (i=0; i<av->nelts; i++) {            modperl_filter_ctx_t *ctx;            if (!(handlers[i]->attrs & MP_FILTER_CONNECTION_HANDLER)) {                MP_TRACE_f(MP_FUNC,                           "%s is not an FilterConnection handler\n",                           handlers[i]->name);                continue;            }            ctx = (modperl_filter_ctx_t *)apr_pcalloc(c->pool, sizeof(*ctx));            ctx->handler = handlers[i];            addfunc(name, (void*)ctx, NULL, c);        }        return OK;    }    MP_TRACE_h(MP_FUNC, "no %s handlers configured (connection)\n", type);    return DECLINED;}