-*- coding: utf-8 -*-
Changes with Apache 2.5.0
+ *) mod_reqtimeout: Resolve unexpected timeouts on keepalive requests
+ under the Event MPM. PR56216. [Frank Meier <frank meier ergon ch>]
+
*) mod_lua: Add r:wspeek for checking if there is any data waiting on the line
[Daniel Gruno]
return DECLINED;
}
- ccfg = apr_pcalloc(c->pool, sizeof(reqtimeout_con_cfg));
+ ccfg = ap_get_module_config(c->conn_config, &reqtimeout_module);
+ if (ccfg == NULL) {
+ ccfg = apr_pcalloc(c->pool, sizeof(reqtimeout_con_cfg));
+ ap_set_module_config(c->conn_config, &reqtimeout_module, ccfg);
+ ap_add_input_filter(reqtimeout_filter_name, ccfg, NULL, c);
+ }
+ else {
+ /* subsequent request under event-like MPM */
+ memset(ccfg, 0, sizeof(reqtimeout_con_cfg));
+ }
+
ccfg->type = "header";
if (cfg->header_timeout != UNSET) {
ccfg->new_timeout = cfg->header_timeout;
ccfg->min_rate = MRT_DEFAULT_HEADER_MIN_RATE;
ccfg->rate_factor = default_header_rate_factor;
}
- ap_set_module_config(c->conn_config, &reqtimeout_module, ccfg);
- ap_add_input_filter("reqtimeout", ccfg, NULL, c);
/* we are not handling the connection, we just do initialization */
return DECLINED;
}