Project_Dep_Name mod_dir
End Project Dependency
Begin Project Dependency
- Project_Dep_Name mod_disk_cache
+ Project_Dep_Name mod_cache_disk
End Project Dependency
Begin Project Dependency
Project_Dep_Name mod_dumpio
###############################################################################
-Project: "mod_disk_cache"=.\modules\cache\mod_disk_cache.dsp - Package Owner=<4>
+Project: "mod_cache_disk"=.\modules\cache\mod_cache_disk.dsp - Package Owner=<4>
Package=<5>
{{{
Fix a denial of service attack against mod_reqtimeout.
[Stefan Fritsch]
+ *) mod_cache_disk: mod_disk_cache renamed to mod_cache_disk, to be
+ consistent with the naming of other modules. [Graham Leggett]
+
*) mod_setenvif: Add SetEnvIfExpr directive to set env var depending on
expression. [Stefan Fritsch]
# Paths must all use the '/' character
#
FILES_nlm_objs = \
- $(OBJDIR)/mod_disk_cache.o \
+ $(OBJDIR)/mod_cache_disk.o \
$(EOLIST)
#
# Any symbols exported to here
#
FILES_nlm_exports = \
- disk_cache_module \
+ cache_disk_module \
$(EOLIST)
#
*/
/**
- * @file disk_cache_common.h
+ * @file cache_disk_common.h
* @brief Common Disk Cache vars/structs
*
* @defgroup Cache_cache Cache Functions
* @{
*/
-#ifndef DISK_CACHE_COMMON_H
-#define DISK_CACHE_COMMON_H
+#ifndef CACHE_DIST_COMMON_H
+#define CACHE_DIST_COMMON_H
#define VARY_FORMAT_VERSION 5
#define DISK_FORMAT_VERSION 6
cache_control_t control;
} disk_cache_info_t;
-#endif /* DISK_CACHE_COMMON_H */
+#endif /* CACHE_DIST_COMMON_H */
+
cache_storage.lo dnl
cache_util.lo dnl
"
-disk_cache_objs="mod_disk_cache.lo"
+cache_disk_objs="mod_cache_disk.lo"
case "$host" in
*os2*)
# OS/2 DLLs must resolve all symbols at build time
# and we need some from main cache module
- disk_cache_objs="$disk_cache_objs mod_cache.la"
+ cache_disk_objs="$cache_disk_objs mod_cache.la"
;;
esac
-APACHE_MODULE(cache, dynamic file caching. At least one storage management module (e.g. mod_disk_cache) is also necessary., $cache_objs, , most)
-APACHE_MODULE(disk_cache, disk caching module, $disk_cache_objs, , most)
+APACHE_MODULE(cache, dynamic file caching. At least one storage management module (e.g. mod_cache_disk) is also necessary., $cache_objs, , most)
+APACHE_MODULE(cache_disk, disk caching module, $cache_disk_objs, , most)
AC_DEFUN([CHECK_DISTCACHE], [
AC_CHECK_HEADER(
#include "apr_file_io.h"
#include "apr_strings.h"
#include "mod_cache.h"
-#include "mod_disk_cache.h"
+#include "mod_cache_disk.h"
#include "http_config.h"
#include "http_log.h"
#include "http_core.h"
* CRLF
*/
-module AP_MODULE_DECLARE_DATA disk_cache_module;
+module AP_MODULE_DECLARE_DATA cache_disk_module;
/* Forward declarations */
static int remove_entity(cache_handle_t *h);
static int create_entity(cache_handle_t *h, request_rec *r, const char *key, apr_off_t len,
apr_bucket_brigade *bb)
{
- disk_cache_dir_conf *dconf = ap_get_module_config(r->per_dir_config, &disk_cache_module);
+ disk_cache_dir_conf *dconf = ap_get_module_config(r->per_dir_config, &cache_disk_module);
disk_cache_conf *conf = ap_get_module_config(r->server->module_config,
- &disk_cache_module);
+ &cache_disk_module);
cache_object_t *obj;
disk_cache_object_t *dobj;
apr_pool_t *pool;
apr_status_t rc;
static int error_logged = 0;
disk_cache_conf *conf = ap_get_module_config(r->server->module_config,
- &disk_cache_module);
+ &cache_disk_module);
#ifdef APR_SENDFILE_ENABLED
core_dir_config *coreconf = ap_get_module_config(r->per_dir_config,
&core_module);
static apr_status_t write_headers(cache_handle_t *h, request_rec *r)
{
disk_cache_conf *conf = ap_get_module_config(r->server->module_config,
- &disk_cache_module);
+ &cache_disk_module);
apr_status_t rv;
apr_size_t amt;
disk_cache_object_t *dobj = (disk_cache_object_t*) h->cache_obj->vobj;
apr_bucket *e;
apr_status_t rv = APR_SUCCESS;
disk_cache_object_t *dobj = (disk_cache_object_t *) h->cache_obj->vobj;
- disk_cache_dir_conf *dconf = ap_get_module_config(r->per_dir_config, &disk_cache_module);
+ disk_cache_dir_conf *dconf = ap_get_module_config(r->per_dir_config, &cache_disk_module);
int seen_eos = 0;
if (!dobj->bb) {
static apr_status_t commit_entity(cache_handle_t *h, request_rec *r)
{
disk_cache_conf *conf = ap_get_module_config(r->server->module_config,
- &disk_cache_module);
+ &cache_disk_module);
disk_cache_object_t *dobj = (disk_cache_object_t *) h->cache_obj->vobj;
apr_status_t rv;
*set_cache_root(cmd_parms *parms, void *in_struct_ptr, const char *arg)
{
disk_cache_conf *conf = ap_get_module_config(parms->server->module_config,
- &disk_cache_module);
+ &cache_disk_module);
conf->cache_root = arg;
conf->cache_root_len = strlen(arg);
/* TODO: canonicalize cache_root and strip off any trailing slashes */
*set_cache_dirlevels(cmd_parms *parms, void *in_struct_ptr, const char *arg)
{
disk_cache_conf *conf = ap_get_module_config(parms->server->module_config,
- &disk_cache_module);
+ &cache_disk_module);
int val = atoi(arg);
if (val < 1)
return "CacheDirLevels value must be an integer greater than 0";
*set_cache_dirlength(cmd_parms *parms, void *in_struct_ptr, const char *arg)
{
disk_cache_conf *conf = ap_get_module_config(parms->server->module_config,
- &disk_cache_module);
+ &cache_disk_module);
int val = atoi(arg);
if (val < 1)
return "CacheDirLength value must be an integer greater than 0";
&cache_disk_provider);
}
-AP_DECLARE_MODULE(disk_cache) = {
+AP_DECLARE_MODULE(cache_disk) = {
STANDARD20_MODULE_STUFF,
create_dir_config, /* create per-directory config structure */
merge_dir_config, /* merge per-directory config structures */
-# Microsoft Developer Studio Project File - Name="mod_disk_cache" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="mod_cache_disk" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
-CFG=mod_disk_cache - Win32 Debug
+CFG=mod_cache_disk - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
-!MESSAGE NMAKE /f "mod_disk_cache.mak".
+!MESSAGE NMAKE /f "mod_cache_disk.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "mod_disk_cache.mak" CFG="mod_disk_cache - Win32 Debug"
+!MESSAGE NMAKE /f "mod_cache_disk.mak" CFG="mod_cache_disk - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "mod_disk_cache - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
-!MESSAGE "mod_disk_cache - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
+!MESSAGE "mod_cache_disk - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
+!MESSAGE "mod_cache_disk - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
!MESSAGE
# Begin Project
MTL=midl.exe
RSC=rc.exe
-!IF "$(CFG)" == "mod_disk_cache - Win32 Release"
+!IF "$(CFG)" == "mod_cache_disk - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MD /W3 /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /FD /c
-# ADD CPP /nologo /MD /W3 /O2 /Oy- /Zi /I "../../srclib/apr-util/include" /I "../../srclib/apr/include" /I "../../include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /Fd"Release\mod_disk_cache_src" /FD /c
+# ADD CPP /nologo /MD /W3 /O2 /Oy- /Zi /I "../../srclib/apr-util/include" /I "../../srclib/apr/include" /I "../../include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /Fd"Release\mod_cache_disk_src" /FD /c
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /fo"Release/mod_disk_cache.res" /i "../../include" /i "../../srclib/apr/include" /d "NDEBUG" /d BIN_NAME="mod_disk_cache.so" /d LONG_NAME="disk_cache_module for Apache"
+# ADD RSC /l 0x409 /fo"Release/mod_cache_disk.res" /i "../../include" /i "../../srclib/apr/include" /d "NDEBUG" /d BIN_NAME="mod_cache_disk.so" /d LONG_NAME="cache_disk_module for Apache"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib /nologo /subsystem:windows /dll
-# ADD LINK32 kernel32.lib /nologo /subsystem:windows /dll /incremental:no /debug /out:".\Release\mod_disk_cache.so" /base:@..\..\os\win32\BaseAddr.ref,mod_disk_cache.so /opt:ref
+# ADD LINK32 kernel32.lib /nologo /subsystem:windows /dll /incremental:no /debug /out:".\Release\mod_cache_disk.so" /base:@..\..\os\win32\BaseAddr.ref,mod_cache_disk.so /opt:ref
# Begin Special Build Tool
-TargetPath=.\Release\mod_disk_cache.so
+TargetPath=.\Release\mod_cache_disk.so
SOURCE="$(InputPath)"
PostBuild_Desc=Embed .manifest
PostBuild_Cmds=if exist $(TargetPath).manifest mt.exe -manifest $(TargetPath).manifest -outputresource:$(TargetPath);2
# End Special Build Tool
-!ELSEIF "$(CFG)" == "mod_disk_cache - Win32 Debug"
+!ELSEIF "$(CFG)" == "mod_cache_disk - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MDd /W3 /EHsc /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /FD /c
-# ADD CPP /nologo /MDd /W3 /EHsc /Zi /Od /I "../../srclib/apr-util/include" /I "../../srclib/apr/include" /I "../../include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /Fd"Debug\mod_disk_cache_src" /FD /c
+# ADD CPP /nologo /MDd /W3 /EHsc /Zi /Od /I "../../srclib/apr-util/include" /I "../../srclib/apr/include" /I "../../include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /Fd"Debug\mod_cache_disk_src" /FD /c
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /fo"Debug/mod_disk_cache.res" /i "../../include" /i "../../srclib/apr/include" /d "_DEBUG" /d BIN_NAME="mod_disk_cache.so" /d LONG_NAME="disk_cache_module for Apache"
+# ADD RSC /l 0x409 /fo"Debug/mod_cache_disk.res" /i "../../include" /i "../../srclib/apr/include" /d "_DEBUG" /d BIN_NAME="mod_cache_disk.so" /d LONG_NAME="cache_disk_module for Apache"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib /nologo /subsystem:windows /dll /incremental:no /debug
-# ADD LINK32 kernel32.lib /nologo /subsystem:windows /dll /incremental:no /debug /out:".\Debug\mod_disk_cache.so" /base:@..\..\os\win32\BaseAddr.ref,mod_disk_cache.so
+# ADD LINK32 kernel32.lib /nologo /subsystem:windows /dll /incremental:no /debug /out:".\Debug\mod_cache_disk.so" /base:@..\..\os\win32\BaseAddr.ref,mod_cache_disk.so
# Begin Special Build Tool
-TargetPath=.\Debug\mod_disk_cache.so
+TargetPath=.\Debug\mod_cache_disk.so
SOURCE="$(InputPath)"
PostBuild_Desc=Embed .manifest
PostBuild_Cmds=if exist $(TargetPath).manifest mt.exe -manifest $(TargetPath).manifest -outputresource:$(TargetPath);2
# Begin Target
-# Name "mod_disk_cache - Win32 Release"
-# Name "mod_disk_cache - Win32 Debug"
+# Name "mod_cache_disk - Win32 Release"
+# Name "mod_cache_disk - Win32 Debug"
# Begin Source File
SOURCE=.\mod_cache.h
# End Source File
# Begin Source File
-SOURCE=.\mod_disk_cache.c
+SOURCE=.\mod_cache_disk.c
# End Source File
# Begin Source File
* limitations under the License.
*/
-#ifndef MOD_DISK_CACHE_H
-#define MOD_DISK_CACHE_H
+#ifndef MOD_CACHE_DISK_H
+#define MOD_CACHE_DISK_H
#include "apr_file_io.h"
-#include "disk_cache_common.h"
+#include "cache_disk_common.h"
/*
- * include for mod_disk_cache: Disk Based HTTP 1.1 Cache.
+ * include for mod_cache_disk: Disk Based HTTP 1.1 Cache.
*/
typedef struct {
/*
- * mod_disk_cache configuration
+ * mod_cache_disk configuration
*/
/* TODO: Make defaults OS specific */
#define CACHEFILE_LEN 20 /* must be less than HASH_LEN/2 */
int readtime_set:1;
} disk_cache_dir_conf;
-#endif /*MOD_DISK_CACHE_H*/
+#endif /*MOD_CACHE_DISK_H*/
+
#include "apr_buckets.h"
#include "../modules/cache/cache_common.h"
-#include "../modules/cache/disk_cache_common.h"
+#include "../modules/cache/cache_disk_common.h"
#if APR_HAVE_UNISTD_H
#include <unistd.h>