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.626 2006/11/14 16:48:22 grubba Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.627 2006/11/14 21:19:16 mast 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:205:      mapping(RequestID:mapping) connection_get( )   //! Return all currently active connections.   {    return current_connections;   }      // It's nice to have the name when the rest of __INIT executes.   string name = roxen->bootstrap_info->get();    - // Trivial cache (actually, it's more or less identical to the 200+ - // lines of C in HTTPLoop. But it does not have to bother with the - // fact that more than one thread can be active in it at once. Also, - // it does not have to delay free until all current connections using - // the cache entry are done...) +    class DataCache   {    mapping(string:    array(string|mapping(string:mixed))|string|    function(string, RequestID:string)) cache = ([]);       int current_size;    int max_size;    int max_file_size;