Bug 39124 - mod_cache using mem_cache randomly sending incorrect mime-type for cached files
Summary: mod_cache using mem_cache randomly sending incorrect mime-type for cached files
Status: RESOLVED DUPLICATE of bug 39266
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_cache (show other bugs)
Version: 2.2.0
Hardware: Other Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-27 20:40 UTC by max g
Modified: 2006-05-03 12:37 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description max g 2006-03-27 20:40:16 UTC
Apache 2.2.0 on SMP Linux 2.6.16 x86_64 with 8gb of RAM.

./configure --with-layout=Apache --enable-module=most --enable-rewrite
--enable-info --enable-status --enable-headers --enable-shared=max
--disable-imap --disable-userdir --disable-cgi --disable-negotiation
--prefix=/www --with-mpm=worker --enable-cache --enable-mem-cache
--enable-mime-magic

<IfModule mod_cache.c>
  CacheEnable mem /
  MCacheSize 4096000
  MCacheMaxObjectCount 20000
  MCacheMinObjectSize 1
  MCacheMaxObjectSize 2048
  MCacheRemovalAlgorithm LRU
</IfModule>

(mmap and sendfile are both on as well)

Requesting a file "blank.gif", a 1x1 transparent gif image randomly falls back
to the mime type set in DefaultType. I tried enabling mime magic, but it didn't
seem to make a difference. As soon as I commented out the mod_cache directives,
the problem disapeared.
Comment 1 Ruediger Pluem 2006-03-27 21:58:38 UTC
Does this also happen with mod_disk_cache?
Comment 2 Dick Snippe 2006-04-26 21:46:20 UTC
(In reply to comment #1)
> Does this also happen with mod_disk_cache?

(we have seen the same happening as in this bug report).

I'm inclined to say "No, this does not happen with mod_disk_cache".

However, we run mod_disk_cache against prefork mpm and mod_mem_cache against
worker mpm, so the incorrect mime types might have something to do with the data
corruptions we see in prefork mpm (see bug report 39079)
Comment 3 Dick Snippe 2006-05-03 13:20:14 UTC
 
> I'm inclined to say "No, this does not happen with mod_disk_cache".
> 
> However, we run mod_disk_cache against prefork mpm and mod_mem_cache against
> worker mpm, so the incorrect mime types might have something to do with the data
> corruptions we see in prefork mpm (see bug report 39079)

Today I upgraded to apache-2.2.2 and saw this bug happening with mod_mem_cache.
I'll revert to mod_disk_cache and see what happens
Comment 4 Ruediger Pluem 2006-05-03 19:37:46 UTC

*** This bug has been marked as a duplicate of 39266 ***