httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r922407 - /httpd/httpd/trunk/modules/filters/mod_reqtimeout.c
Date Fri, 12 Mar 2010 19:57:36 GMT
Author: sf
Date: Fri Mar 12 19:57:36 2010
New Revision: 922407

URL: http://svn.apache.org/viewvc?rev=922407&view=rev
Log:
Also extend the timeout if have_lf_or_eos() returned APR_SUCCESS.
Spotted by Ruediger Pluem

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=922407&r1=922406&r2=922407&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/filters/mod_reqtimeout.c (original)
+++ httpd/httpd/trunk/modules/filters/mod_reqtimeout.c Fri Mar 12 19:57:36 2010
@@ -207,15 +207,15 @@ static apr_status_t reqtimeout_filter(ap
             }
 
             if (!APR_BRIGADE_EMPTY(bb)) {
+                if (ccfg->min_rate > 0) {
+                    extend_timeout(ccfg, bb);
+                }
+
                 rv = have_lf_or_eos(bb);
                 if (rv != APR_INCOMPLETE) {
                     break;
                 }
 
-                if (ccfg->min_rate > 0) {
-                    extend_timeout(ccfg, bb);
-                }
-
                 rv = apr_brigade_length(bb, 1, &bblen);
                 if (rv != APR_SUCCESS) {
                     break;



Mime
View raw message