httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r1418648 - /httpd/httpd/trunk/modules/cache/mod_cache_socache.c
Date Sat, 08 Dec 2012 12:04:34 GMT
Author: minfrin
Date: Sat Dec  8 12:04:33 2012
New Revision: 1418648

URL: http://svn.apache.org/viewvc?rev=1418648&view=rev
Log:
mod_cache_socache: Don't clean up too soon. If we do, revalidated requests
lose their bodies.

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

Modified: httpd/httpd/trunk/modules/cache/mod_cache_socache.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cache/mod_cache_socache.c?rev=1418648&r1=1418647&r2=1418648&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/cache/mod_cache_socache.c (original)
+++ httpd/httpd/trunk/modules/cache/mod_cache_socache.c Sat Dec  8 12:04:33 2012
@@ -1105,7 +1105,6 @@ static apr_status_t commit_entity(cache_
                 sobj->key);
         goto fail;
     }
-    apr_brigade_cleanup(sobj->body);
     if (len >= sobj->buffer_len - sobj->body_offset) {
         ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, APLOGNO(02383)
                 "body too big for the cache buffer, not caching: %s",



Mime
View raw message