View | Details | Raw Unified | Return to bug 56216
Collapse All | Expand All

(-)mod_reqtimeout.c.org (-3 / +12 lines)
Lines 343-349 Link Here
343
        return DECLINED;
343
        return DECLINED;
344
    }
344
    }
345
345
346
    ccfg = apr_pcalloc(c->pool, sizeof(reqtimeout_con_cfg));
346
    ccfg = ap_get_module_config(c->conn_config, &reqtimeout_module);
347
    if ( ccfg == NULL )
348
    {
349
        ccfg = apr_pcalloc(c->pool, sizeof(reqtimeout_con_cfg));
350
        ap_set_module_config(c->conn_config, &reqtimeout_module, ccfg);
351
        ap_add_input_filter(reqtimeout_filter_name, ccfg, NULL, c);
352
    }
353
    else
354
    {
355
        memset(ccfg, 0, sizeof(reqtimeout_con_cfg));
356
    }
357
347
    ccfg->type = "header";
358
    ccfg->type = "header";
348
    if (cfg->header_timeout != UNSET) {
359
    if (cfg->header_timeout != UNSET) {
349
        ccfg->new_timeout     = cfg->header_timeout;
360
        ccfg->new_timeout     = cfg->header_timeout;
Lines 357-365 Link Here
357
        ccfg->min_rate        = MRT_DEFAULT_HEADER_MIN_RATE;
368
        ccfg->min_rate        = MRT_DEFAULT_HEADER_MIN_RATE;
358
        ccfg->rate_factor     = default_header_rate_factor;
369
        ccfg->rate_factor     = default_header_rate_factor;
359
    }
370
    }
360
    ap_set_module_config(c->conn_config, &reqtimeout_module, ccfg);
361
371
362
    ap_add_input_filter("reqtimeout", ccfg, NULL, c);
363
    /* we are not handling the connection, we just do initialization */
372
    /* we are not handling the connection, we just do initialization */
364
    return DECLINED;
373
    return DECLINED;
365
}
374
}

Return to bug 56216