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

(-)mod_reqtimeout.c.org (-3 / +8 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 ( NULL == ccfg )
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
347
    ccfg->type = "header";
354
    ccfg->type = "header";
348
    if (cfg->header_timeout != UNSET) {
355
    if (cfg->header_timeout != UNSET) {
349
        ccfg->new_timeout     = cfg->header_timeout;
356
        ccfg->new_timeout     = cfg->header_timeout;
Lines 357-365 Link Here
357
        ccfg->min_rate        = MRT_DEFAULT_HEADER_MIN_RATE;
364
        ccfg->min_rate        = MRT_DEFAULT_HEADER_MIN_RATE;
358
        ccfg->rate_factor     = default_header_rate_factor;
365
        ccfg->rate_factor     = default_header_rate_factor;
359
    }
366
    }
360
    ap_set_module_config(c->conn_config, &reqtimeout_module, ccfg);
361
367
362
    ap_add_input_filter("reqtimeout", ccfg, NULL, c);
363
    /* we are not handling the connection, we just do initialization */
368
    /* we are not handling the connection, we just do initialization */
364
    return DECLINED;
369
    return DECLINED;
365
}
370
}

Return to bug 56216