Commit 6fddde8d authored by Paul Querna's avatar Paul Querna
Browse files

disable mod_reqtimeout if not configured

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1202255 13f79535-47bb-0310-9956-ffa450edef68
parent 8e628d94
Loading
Loading
Loading
Loading
+5 −0
Changes for modules/filters/mod_reqtimeout.c: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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) {