]> granicus.if.org Git - apache/commitdiff
allow bypass and removal.
authorJim Jagielski <jim@apache.org>
Tue, 19 Mar 2013 17:07:07 +0000 (17:07 +0000)
committerJim Jagielski <jim@apache.org>
Tue, 19 Mar 2013 17:07:07 +0000 (17:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1458411 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_reqtimeout.c

index 717d16c1a79a76b10a2c456cd54942c1f838a399..c7742a7b6c404f991a3711ff515652f696ddcda8 100644 (file)
@@ -177,6 +177,12 @@ static apr_status_t reqtimeout_filter(ap_filter_t *f,
     apr_interval_time_t saved_sock_timeout = UNSET;
     reqtimeout_con_cfg *ccfg = f->ctx;
 
+    /* connections can remove the filter even if configured */
+    if (apr_table_get(f->c->notes, "remove-reqtimeout")) {
+        ap_remove_input_filter(f);
+        return ap_get_brigade(f->next, bb, mode, block, readbytes);
+    }
+
     /* connections can bypass the filter even if configured */
     if (apr_table_get(f->c->notes, "bypass-reqtimeout")) {
         return ap_get_brigade(f->next, bb, mode, block, readbytes);