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 - 2001, Roxen IS. - // $Id: global_variables.pike,v 1.78 2001/08/20 15:11:25 per Exp $ + // $Id: global_variables.pike,v 1.79 2001/08/22 15:41:36 per 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:489: Inside #if undefined(__NT__)
  #ifndef __NT__    defvar("abs_engage", 0, LOCALE(154, "ABS: Enable Anti-Block-System"),    TYPE_FLAG|VAR_MORE,    LOCALE(155, "If set, the anti-block-system will be enabled. "    "This will restart the server after a configurable number of minutes if it "    "locks up. If you are running in a single threaded environment heavy "    "calculations will also halt the server. In multi-threaded mode bugs such as "    "eternal loops will not cause the server to reboot, since only one thread is "    "blocked. In general there is no harm in having this option enabled. "));    +  +     defvar("abs_timeout", 5, LOCALE(156, "ABS: Timeout"),    TYPE_INT_LIST|VAR_MORE,    LOCALE(157, "If the server is unable to accept connection for this many "    "minutes, it will be restarted. You need to find a balance: "    "if set too low, the server will be restarted even if it's doing "    "legal things (like generating many images), if set too high you might "    "get a long downtime if the server for some reason locks up."),    ({1,2,3,4,5,10,15}),    lambda() {return !query("abs_engage");});   #endif // __NT__
Roxen.git/server/base_server/global_variables.pike:543:    defvar("suicide_engage", 0,    LOCALE(160, "Auto Restart: Enable Automatic Restart"),    TYPE_FLAG|VAR_MORE,    LOCALE(161, "If set, Roxen will automatically restart after a "    "configurable number of days. Since Roxen uses a monolith, "    "non-forking server model the process tends to grow in size "    "over time. This is mainly due to heap fragmentation but also "    "because of memory leaks.")    );    -  defvar("suicide_timeout", 7, -  LOCALE(162, "Auto Restart: Timeout"), -  TYPE_INT_LIST|VAR_MORE, -  LOCALE(163, "Automatically restart the server after this many days."), -  ({1,2,3,4,5,6,7,14,30}), -  lambda(){return !query("suicide_engage");}); +  definvisvar( "last_suicide", 0, TYPE_INT );    -  +  defvar("suicide_schedule", +  Variable.Schedule( ({ 2, 1, 1, 0, 4 }), 0, +  LOCALE(0,"Auto Restart: Schedule"), +  LOCALE(0, "Automatically restart the " +  "server according to this schedule.") ) ) +  ->set_invisibility_check_callback ( +  lambda(RequestID id, Variable.Variable f) +  {return !query("suicide_engage");} +  ); +     defvar("mem_cache_gc",    Variable.Int(300, 0,    LOCALE(170, "Cache: Memory Cache Garbage Collect Interval"),    LOCALE(171, "The number of seconds between every garbage collect "    "(removal of old content) from the memory cache. The "    "memory cache is used for various tasks like remembering "    "what supports flags matches what client.")))    ->set_range(1, 60*60*24);    // Note that the upper limit is arbitrary.