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.638 2007/09/10 11:59:58 grubba Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.639 2007/09/12 14:12:56 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:519:   }      ADT.Trie generate_module_mib(array(int) oid,    RoxenModule me,    ModuleInfo moduleinfo,    ModuleCopies module)   {    return SNMP.SimpleMIB(oid,    ({    UNDEFINED, -  SNMP.String(otomod[me]), -  SNMP.Integer(moduleinfo->type), +  SNMP.String(otomod[me], +  "moduleIdentifier"), +  SNMP.Integer(moduleinfo->type, +  "moduleType"), +  SNMP.String(me->cvs_version || "", +  "moduleVersion"),    }));   }      // Cache some configuration variables.   private int sub_req_limit = 30;   private string internal_location = "/_internal/";      // The logging format used. This will probably move to the above   // mentioned module in the future.   private mapping (int|string:string) log_format = ([]);
Roxen.git/server/base_server/configuration.pike:4999:    "identifying this site."));       // FIXME: The following should move to a stage where    // the config variables have been loaded.    mib->merge(SNMP.SimpleMIB(query_oid(),    ({    UNDEFINED,    UNDEFINED,    query_name,    comment, -  lambda() { return SNMP.Counter64(sent); }, -  lambda() { return SNMP.Counter64(received); }, -  lambda() { return SNMP.Counter64(hsent); }, -  lambda() { return SNMP.Counter64(requests); }, +  SNMP.Counter64(lambda() { return sent; }), +  SNMP.Counter64(lambda() { return received; }), +  SNMP.Counter64(lambda() { return hsent; }), +  SNMP.Counter64(lambda() { return requests; }),    UNDEFINED, // NOTE: Reserved for modules!    })));    mib_version++;   }      static int arent_we_throttling_server () {    return !query("throttle");   }   static int arent_we_throttling_request() {    return !query("req_throttle");