Branch: Tag:

2009-04-17

2009-04-17 15:40:20 by Martin Stjernholm <mast@lysator.liu.se>

Moved get_max_cache and set_max_cache from the http protocol to RequestID,
added lower_max_cache and raise_max_cache, and implemented
id->misc->local_cacheable to be able to track local cache time changes.

Rev: server/base_server/prototypes.pike:1.244
Rev: server/protocols/http.pike:1.597

2:   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2004, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.596 2009/04/17 13:44:22 marty Exp $"; + constant cvs_version = "$Id: http.pike,v 1.597 2009/04/17 15:40:20 mast Exp $";   // #define REQUEST_DEBUG   #define MAGIC_ERROR   
1128:    return 3; // Done.   }    - int get_max_cache() - { -  return misc->cacheable; - } -  - int set_max_cache( int t ) - { -  int ot = misc->cacheable; -  misc->cacheable = t; - #ifdef DEBUG_CACHEABLE -  report_debug("http::set_max_cache() set cacheable to %d (was: %d)\n", t, ot); - #endif -  return ot; - } -  +    void disconnect()   {    file = 0;
2893: Inside #if defined(RAM_CACHE)
   leftovers = data||"";       string d = cv[ 0 ]; + #ifdef DEBUG +  if (!stringp (d)) +  error ("Strange value from data cache for %O: %O\n", raw_url, cv); + #endif    file = cv[1];       if( sizeof(file->callbacks) )