httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r467684 - /httpd/httpd/trunk/modules/cache/mod_cache.c
Date Wed, 25 Oct 2006 15:45:22 GMT
Author: minfrin
Date: Wed Oct 25 08:45:22 2006
New Revision: 467684

URL: http://svn.apache.org/viewvc?view=rev&rev=467684
Log:
Optimise the alternate case. Fail fast and stop splitting buckets if
store_body is no longer being called.

Modified:
    httpd/httpd/trunk/modules/cache/mod_cache.c

Modified: httpd/httpd/trunk/modules/cache/mod_cache.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cache/mod_cache.c?view=diff&rev=467684&r1=467683&r2=467684
==============================================================================
--- httpd/httpd/trunk/modules/cache/mod_cache.c (original)
+++ httpd/httpd/trunk/modules/cache/mod_cache.c Wed Oct 25 08:45:22 2006
@@ -338,7 +338,7 @@
     rv2 = APR_SUCCESS;
     if (conf->maxbucketsize > 0) {
         e = APR_BRIGADE_FIRST(in);
-        while (e != APR_BRIGADE_SENTINEL(in)) {   
+        while (APR_SUCCESS == rv && e != APR_BRIGADE_SENTINEL(in)) {
     
             /* if necessary, split the brigade and send what we have so far */
             if (APR_SUCCESS == apr_bucket_split(e, conf->maxbucketsize)) {



Mime
View raw message