]> granicus.if.org Git - apache/commitdiff
Revert r1202255 to restore same behavior as in 2.4:
authorStefan Fritsch <sf@apache.org>
Tue, 31 Jan 2012 21:53:17 +0000 (21:53 +0000)
committerStefan Fritsch <sf@apache.org>
Tue, 31 Jan 2012 21:53:17 +0000 (21:53 +0000)
    disable mod_reqtimeout if not configured

There is some agreement that 2.4's behavior is fine.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1238826 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_reqtimeout.c

index b8f6f085c31d9ecb0915242f79dffe97cbbf0fa8..3250efcadece1a6d141745f0ae84b653ace6e7b9 100644 (file)
@@ -343,11 +343,6 @@ static int reqtimeout_init(conn_rec *c)
         return DECLINED;
     }
 
-    if (cfg->header_timeout == UNSET && cfg->body_timeout == UNSET) {
-        /* if everything is unset, skip by default. */
-        return DECLINED;
-    }
-
     ccfg = apr_pcalloc(c->pool, sizeof(reqtimeout_con_cfg));
     ccfg->type = "header";
     if (cfg->header_timeout != UNSET) {