Commit 23eaebb6 authored by Graham Leggett's avatar Graham Leggett
Browse files

Optimise the alternate case. Fail fast and stop splitting buckets if

store_body is no longer being called.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@467684 13f79535-47bb-0310-9956-ffa450edef68
parent 08c7a7c5
Loading
Loading
Loading
Loading
+1 −1
Changes for modules/cache/mod_cache.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -338,7 +338,7 @@ static int do_store_body(cache_request_rec *cache,
    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)) {