summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/filters/mod_reqtimeout.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/filters/mod_reqtimeout.c b/modules/filters/mod_reqtimeout.c
index 800bb6b4a9..9def3abdbd 100644
--- a/modules/filters/mod_reqtimeout.c
+++ b/modules/filters/mod_reqtimeout.c
@@ -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) {