increase socache_shmcb maximum size

2013-06-17 Thread Jens Låås
Hello!

Current maximum size of socache_shmcb is 64MB, which is rather small if you
want to use it with mod_cache_socache.
Memory is cheap etc.

I also noticed that different data types seemed to be used to represent
cache sizes: apr_size_t and unsigned int.

Attached suggestion is to base the maximum size on apr_size_t. Sets max to
half of maximum representable by apr_size_t.

Regards,
Jens


mod_socache_shmcb.pat
Description: Binary data


Re: increase socache_shmcb maximum size

2013-06-17 Thread Jens Låås
2013/6/17 Graham Leggett minf...@sharp.fm

 On 17 Jun 2013, at 3:15 PM, Jens Låås jel...@gmail.com wrote:

  Current maximum size of socache_shmcb is 64MB, which is rather small if
 you want to use it with mod_cache_socache.
  Memory is cheap etc.
 
  I also noticed that different data types seemed to be used to represent
 cache sizes: apr_size_t and unsigned int.
 
  Attached suggestion is to base the maximum size on apr_size_t. Sets max
 to half of maximum representable by apr_size_t.

 In theory we should just limit it to APR_SIZE_T_MAX, as you say the cache
 size can be large, if it fits in RAM it fits in RAM.

 Undoubtably correct. Even better :-)

Cheers,
Jens


 Regards,
 Graham
 --




mod_cache_socache onliner bugfix

2013-06-13 Thread Jens Låås
Makes config merge work.

Regards,
Jens


max_set.pat
Description: Binary data