--- mod_reqtimeout.c.original 2014-06-13 10:58:39.136152643 -0700 +++ mod_reqtimeout.c 2014-06-13 10:58:44.704301312 -0700 @@ -370,8 +370,8 @@ 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) { + /* disabled for this connection */ return OK; } cfg = ap_get_module_config(r->connection->base_server->module_config, @@ -380,6 +380,12 @@ ccfg->timeout_at = 0; ccfg->max_timeout_at = 0; + + if (r->method_number == M_CONNECT) { + /* CONNECT request, do not apply timeout */ + return OK; + } + ccfg->type = "body"; if (cfg->body_timeout != UNSET) { ccfg->new_timeout = cfg->body_timeout;