]> granicus.if.org Git - apache/commitdiff
disable mod_reqtimeout if not configured
authorPaul Querna <pquerna@apache.org>
Tue, 15 Nov 2011 15:49:19 +0000 (15:49 +0000)
committerPaul Querna <pquerna@apache.org>
Tue, 15 Nov 2011 15:49:19 +0000 (15:49 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1202255 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_reqtimeout.c

index 800bb6b4a976d9be675eb450fe3c6d789ecfad6a..9def3abdbd775d8112b3f5fffe5ef91c9c237c51 100644 (file)
@@ -340,6 +340,11 @@ 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) {