mod_mem_cache caches incomplete content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I'm using mod_mem_cache to cache iso files provided by tomcat backend
server (using mod_http_proxy).
During the first client download, the iso file is stored into this cache.
If this client stops prematurely the download, the cache contains an
incomplete part of this iso file.
Consequently, for all other requests from all clients, the iso file will
be wrong.
Of course, we have the same behavior for any kind of content (jpeg,
html, ...).

This bug has already been defined partially into the 32735 and 15866 bug
reports,
but I would like to complete it.

We have two cases :
- The backend server doesn't send a complete response. For me, this case
is covered by the 15866 bug report.
I agree that we should be compliant with RFC 2616 and  so treat response
as partial.

- The first client, filling the cache, stops prematurely the download.
In such case, the mod_mem_cache must discard the body response.
I've performed same tests using the mod_disk_cache.
This one discards the body if the connection has been aborted.
"disk_cache: Discarding body for URL http://... because connection has
been aborted."

My feeling is that we should have the same behavior for mem and disk
cache modules.
The mem module is not usable because the integrity of cache content
should not depend of the client.

Fred

PS : I'm doing my tests on Apache 2.2.8 on Linux.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux