You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by mi...@apache.org on 2012/12/08 13:04:34 UTC
svn commit: r1418648 - /httpd/httpd/trunk/modules/cache/mod_cache_socache.c
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",