Roxen.git / server / base_server / global_variables.pike

version» Context lines:

Roxen.git/server/base_server/global_variables.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2004, Roxen IS. - // $Id: global_variables.pike,v 1.115 2009/01/08 23:14:46 mast Exp $ + // $Id: global_variables.pike,v 1.116 2009/03/17 16:37:51 jonasw Exp $      // #pragma strict_types   #define DEFVAR mixed...:object   #define BDEFVAR mixed...:object      #define IN_ROXEN   #include <module.h>   inherit "read_config";   inherit "basic_defvar";   #include <version.h>
Roxen.git/server/base_server/global_variables.pike:89: Inside #if 0
   defvar("snmp_syslocation","","System MIB: Location",    TYPE_STRING,    "The physical location of this node (e.g., `telephone closet, 3rd "    "floor').");    defvar("snmp_sysservices",72,"System MIB: Services",    TYPE_INT,    "A value which indicates the set of services that this entity "    "primarily offers.");   #if 0    defvar("site_id", 0, -  LOCALE(0, "SNMP sub-MIB"), TYPE_INT, -  LOCALE(0, "MIB suffix to " +  LOCALE(1012, "SNMP sub-MIB"), TYPE_INT, +  LOCALE(1013, "MIB suffix to "    "identifying this site."));   #endif /* 0 */   }   #endif /* 0 */      void set_up_ftp_variables( Protocol o )   {    function(DEFVAR) defvar = o->defvar;      
Roxen.git/server/base_server/global_variables.pike:292:   {    Variable.Variable v;       defvar("myisamchk",    Variable.Language("Fast check and repair",    ({ "Disable check",    "Fast check and repair",    "Normal check and repair",    "Medium check and repair",    "Extended check and repair" }), -  0, LOCALE(0, "MySQL table check"), -  LOCALE(0, "Check MySQL tables on server start, " +  0, LOCALE(1014, "MySQL table check"), +  LOCALE(1015, "Check MySQL tables on server start, "    "and automatically repair if necessary. "    "<b>Fast</b> checks only tables that haven't "    "been closed properly. "    "<b>Normal</b> checks for general errors. "    "<b>Medium</b> catches 99.99 % of all "    "errors. Should be good enough for most "    "cases. "    "<b>Extended</b> checks the tables VERY "    "throughly. Only use this in extreme cases "    "as myisamchk should normally be able to "
Roxen.git/server/base_server/global_variables.pike:632:    set_changed_callback (    lambda (Variable.Variable v) {    if (v->query())    set ("slow_req_bt_count", -1);    else if (query ("slow_req_bt_count") < 0)    set ("slow_req_bt_count", 0);    });       v = Variable.TmpInt (    0, 0, -  LOCALE(0, "Logging: Dump threads for slow requests"), -  LOCALE(0, #"\ +  LOCALE(1016, "Logging: Dump threads for slow requests"), +  LOCALE(1017, #"\   <p>This enables a monitor that dumps all the threads in the debug log   whenever any request, background job or the backend thread has been   running for more than a set number of seconds, which is configured   with the \"Slow request timeout\" and \"Slow backend timeout\"   settings.</p>      <p>This setting is a counter: A positive number stops the monitor   after that many thread dumps have been made, -1 enables the monitor   permanently, and zero disables it. Positive numbers aren't persistent,   so will be reset to zero whenever the server is restarted.</p>
Roxen.git/server/base_server/global_variables.pike:663:   <p>Enabling this creates a dedicated thread.</p>"));    defvar ("slow_req_bt_count", v);    v->set_range (-1, Variable.no_limit);    v->set_changed_callback (    lambda (Variable.Variable v) {    int count = v->query();    set ("slow_req_bt_permanent", count < 0);   #ifndef NO_SLOW_REQ_BT    slow_req_count_changed();   #else -  v->set_warning (LOCALE(0, "Feature disabled by NO_SLOW_REQ_BT define.")); +  v->set_warning (LOCALE(1018, "Feature disabled by NO_SLOW_REQ_BT define."));   #endif    });       v = defvar ("slow_req_bt_timeout", 10.0, -  LOCALE(0, "Logging: Slow request timeout"), +  LOCALE(1019, "Logging: Slow request timeout"),    TYPE_FLOAT, -  LOCALE(0, #"\ +  LOCALE(1020, #"\   <p>The timeout in seconds for requests or background jobs to trig a   thread dump. Zero disables monitoring of those. See the \"Dump threads   for slow requests\" setting for details.</p>"));    v->set_range (0.0, Variable.no_limit);    v->set_precision (3);   #ifndef NO_SLOW_REQ_BT    v->set_changed_callback (lambda (Variable.Variable v) {    slow_req_timeout_changed();    });   #endif       v = defvar ("slow_be_bt_timeout", 0.05, -  LOCALE(0, "Logging: Slow backend timeout"), +  LOCALE(1021, "Logging: Slow backend timeout"),    TYPE_FLOAT, -  LOCALE(0, #"\ +  LOCALE(1022, #"\   <p>The timeout in seconds for the backend thread to trig a thread   dump. Zero disables monitoring of it. See the \"Dump threads for slow   requests\" setting for details.</p>      <p>The backend thread is a special thread that manages most I/O and   directs the incoming requests to the handler threads. It should never   be occupied for a significant amount of time since that would make the   server essentially unresponsive. Therefore this timeout should be   small.</p>