httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49385] New: mod_disk_cache server side included files are intermittently corrupted
Date Thu, 03 Jun 2010 21:35:35 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49385

           Summary: mod_disk_cache server side included files are
                    intermittently corrupted
           Product: Apache httpd-2
           Version: 2.2.3
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_disk_cache
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: gmillikan@t1shopper.com


It appears that when mod_disk_cache reads server side includes to create its
final cached web page, it sometimes corrupts the included file.

I'm speculating that the issue may be that the included file is getting
DEFLATEd and Apache is intermittently forgetting to ungzip it prior to putting
it into the final, parent page (which is then cached).

Details: The parent web page is called "index.shtml" and the child file is
getting included like this:
<!--#include virtual="/dir/include/my_html_file.html" -->

Everything else on the page looks fine but where the my_html_file.html should
be we see binary output in the source code like this:
í\énÛHþÜ|á]åâu?-SìA½¡!ŸÄoÿ›IÅÇsØß'±"’ÿ ¼ñ*dLXúIpV.n§Œ
©äÉb®H&Ùˆð˜I

If I restart Apache, the problem remains. But the problem goes away if I delete
the cache on the web server. So the cache must have gotten corrupted. I can
refresh the page many times after that and the page is fine. 

LoadModule deflate_module modules/mod_deflate.so
DeflateCompressionLevel 1
DeflateMemLevel 9
DeflateWindowSize 15
SetEnvIfNoCase Request_URI \
\.(?:gif|jpe?g|png|ico)$ no-gzip dont-vary
#Header append Vary User-Agent env=!dont-vary


LoadModule disk_cache_module modules/mod_disk_cache.so
CacheRoot /var/httpd/proxy/
CacheEnable disk /
CacheDisable /i
CacheMaxFileSize 500000
CacheMinFileSize 1000
CacheDirLevels 2
CacheDirLength 2
CacheIgnoreCacheControl Off
CacheIgnoreNoLastMod On
CacheIgnoreHeaders Set-Cookie
CacheLastModifiedFactor 0.1
CacheMaxExpire 172800
CacheDefaultExpire 86400

Server version: Apache/2.2.3
Server built:   Nov 10 2009 09:06:10
OS: RedHat EL 5 Linux 2.6.18-164.6.1.el5 #1 SMP Tue Oct 27 11:28:30 EDT 2009
x86_64 x86_64 x86_64 GNU/Linux

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message