-*- coding: utf-8 -*-
Changes with Apache 2.5.0
+ *) mod_reqtimeout: Fix body timeout disabling for CONNECT requests to avoid
+ triggering mod_proxy_connect's AH01018 once the tunnel is established.
+ [Yann Ylavic]
+
*) mod_proxy_balancer: Prevent redirect loops between workers within a
balancer by limiting the number of redirects to the number balancer
members. PR 59864 [Ruediger Pluem]
reqtimeout_con_cfg *ccfg =
ap_get_module_config(r->connection->conn_config, &reqtimeout_module);
- if (ccfg == NULL || r->method_number == M_CONNECT) {
- /* either disabled for this connection or a CONNECT request */
+ if (ccfg == NULL) {
+ /* not configured for this connection */
return OK;
}
cfg = ap_get_module_config(r->connection->base_server->module_config,
ccfg->timeout_at = 0;
ccfg->max_timeout_at = 0;
ccfg->type = "body";
+ if (r->method_number == M_CONNECT) {
+ /* disabled for a CONNECT request */
+ ccfg->new_timeout = 0;
+ }
if (cfg->body_timeout != UNSET) {
ccfg->new_timeout = cfg->body_timeout;
ccfg->new_max_timeout = cfg->body_max_timeout;