httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ch...@locus.apache.org
Subject cvs commit: apache-1.3/src/modules/proxy mod_proxy.c mod_proxy.h
Date Fri, 08 Dec 2000 10:19:35 GMT
chuck       00/12/08 02:19:35

  Modified:    src/modules/proxy mod_proxy.c mod_proxy.h
  Log:
  Set a working CacheGcInterval of one hour in case one is not set in the
  configuration file
  
  Revision  Changes    Path
  1.73      +2 -2      apache-1.3/src/modules/proxy/mod_proxy.c
  
  Index: mod_proxy.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/modules/proxy/mod_proxy.c,v
  retrieving revision 1.72
  retrieving revision 1.73
  diff -u -r1.72 -r1.73
  --- mod_proxy.c	2000/11/14 09:57:14	1.72
  +++ mod_proxy.c	2000/12/08 10:19:34	1.73
  @@ -432,8 +432,8 @@
       ps->cache.defaultexpire_set = 0;
       ps->cache.lmfactor = DEFAULT_CACHE_LMFACTOR;
       ps->cache.lmfactor_set = 0;
  -    ps->cache.gcinterval = -1;
  -    ps->cache.gcinterval_set = 0;
  +    ps->cache.gcinterval = DEFAULT_CACHE_GCINTERVAL;
  +    ps->cache.gcinterval_set = 1;
       /* at these levels, the cache can have 2^18 directories (256,000)  */
       ps->cache.dirlevels = 3;
       ps->cache.dirlevels_set = 0;
  
  
  
  1.50      +1 -0      apache-1.3/src/modules/proxy/mod_proxy.h
  
  Index: mod_proxy.h
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/modules/proxy/mod_proxy.h,v
  retrieving revision 1.49
  retrieving revision 1.50
  diff -u -r1.49 -r1.50
  --- mod_proxy.h	2000/11/14 09:57:15	1.49
  +++ mod_proxy.h	2000/12/08 10:19:34	1.50
  @@ -181,6 +181,7 @@
   #define DEFAULT_CACHE_EXPIRE    SEC_ONE_HR
   #define DEFAULT_CACHE_LMFACTOR (0.1)
   #define DEFAULT_CACHE_COMPLETION (0.9)
  +#define DEFAULT_CACHE_GCINTERVAL SEC_ONE_HR
   
   /* static information about the local cache */
   struct cache_conf {
  
  
  

Mime
View raw message