httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1458284 - /httpd/httpd/trunk/modules/filters/mod_reqtimeout.c
Date Tue, 19 Mar 2013 13:56:30 GMT
Author: jim
Date: Tue Mar 19 13:56:29 2013
New Revision: 1458284

URL: http://svn.apache.org/r1458284
Log:
Allow modules to pro-actively bypass the reqtimeout filter (by connection)

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=1458284&r1=1458283&r2=1458284&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/filters/mod_reqtimeout.c (original)
+++ httpd/httpd/trunk/modules/filters/mod_reqtimeout.c Tue Mar 19 13:56:29 2013
@@ -177,6 +177,11 @@ static apr_status_t reqtimeout_filter(ap
     apr_interval_time_t saved_sock_timeout = UNSET;
     reqtimeout_con_cfg *ccfg = f->ctx;
 
+    /* connections can bypass the filter even if configured */
+    if (apr_table_get(f->c->notes, "bypass-reqtimeout")) {
+        return APR_SUCCESS;
+    }
+
     if (ccfg->in_keep_alive) {
         /* For this read, the normal keep-alive timeout must be used */
         ccfg->in_keep_alive = 0;



Mime
View raw message