Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2004, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.612 2006/06/30 09:10:44 grubba Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.613 2006/06/30 09:20:28 grubba Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>   #include <timers.h>      #define CATCH(P,X) do{mixed e;if(e=catch{X;})report_error("While "+P+"\n"+describe_backtrace(e));}while(0)      // --- Locale defines ---   //<locale-token project="roxen_start"> LOC_S </locale-token>
Roxen.git/server/base_server/configuration.pike:277:    if (!val) {    return;    }       string|array(string) key_frag;    if (stringp(val)) {    key_frag = id->request_headers[val];    } else {    key_frag = val(url, id);    } -  if (arrayp(key_frag)) keyfrag *= ", "; +  if (arrayp(key_frag)) key_frag *= ", ";    // NOTE: The prepended NUL is for spoof protection.    key_prefix = "\0" + key_prefix + "\0" + (key_frag || "");    }    }       static void clear_some_cache()    {    array(string) q = indices(cache);    if(!sizeof(q))    {
Roxen.git/server/base_server/configuration.pike:317:    expire_entry(key);    }    cache[key] = vary_cb;       string|array(string) key_frag;    if (stringp(vary_cb)) {    key_frag = id->request_headers[vary_cb];    } else {    key_frag = vary_cb(url, id);    } -  if (arrayp(key_frag)) keyfrag *= ", "; +  if (arrayp(key_frag)) key_frag *= ", ";    // NOTE: The prepended NUL is for spoof protection.    key = "\0" + key + "\0" + (key_frag || "");    }       array(string|mapping(string:mixed))|string|    function(string, RequestID:string) old = cache[key];    if (old) {    // FIXME: Warn?    expire_entry(key);    }
Roxen.git/server/base_server/configuration.pike:361:    misses++;    return UNDEFINED;    }       string|array(string) key_frag;    if (stringp(res)) {    key_frag = id->request_headers[res];    } else {    key_frag = res(url, id);    } -  if (arrayp(key_frag)) keyfrag *= ", "; +  if (arrayp(key_frag)) key_frag *= ", ";    // NOTE: The prepended NUL is for spoof protection.    key = "\0" + key + "\0" + (key_frag || "");    };    }       void init_from_variables( )    {    max_size = query( "data_cache_size" ) * 1024;    max_file_size = query( "data_cache_file_max_size" ) * 1024;    if( max_size < max_file_size )