You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@apache.org on 2013/03/19 18:07:07 UTC

svn commit: r1458411 - /httpd/httpd/trunk/modules/filters/mod_reqtimeout.c

Author: jim
Date: Tue Mar 19 17:07:07 2013
New Revision: 1458411

URL: http://svn.apache.org/r1458411
Log:
allow bypass and removal.

Modified:
    httpd/httpd/trunk/modules/filters/mod_reqtimeout.c

Modified: httpd/httpd/trunk/modules/filters/mod_reqtimeout.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/filters/mod_reqtimeout.c?rev=1458411&r1=1458410&r2=1458411&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/filters/mod_reqtimeout.c (original)
+++ httpd/httpd/trunk/modules/filters/mod_reqtimeout.c Tue Mar 19 17:07:07 2013
@@ -177,6 +177,12 @@ static apr_status_t reqtimeout_filter(ap
     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);