Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:670: Inside #if defined(HTTP_COMPRESSION)
  int(0..1) http_compr_enabled;   mapping(string:int) http_compr_main_mimes = ([]);   mapping(string:int) http_compr_exact_mimes = ([]);   int http_compr_minlen;   int http_compr_maxlen;   int(0..1) http_compr_dynamic_reqs;   Thread.Local gz_file_pool = Thread.Local();   #endif      int handler_queue_timeout; + int max_post_size;      // The logging format used. This will probably move to the above   // mentioned module in the future.   private mapping (int|string:string) log_format = ([]);      //! The modules sorted with regards to priority and type.   private array(RoxenModule) sorted_modules = ({});      //! NB: May contain junk in the high-order bits.   private array(int) sorted_module_types = ({});
Roxen.git/server/base_server/configuration.pike:5701:    defvar("handler_queue_timeout", 30,    DLOCALE(1050, "Handler queue timeout"),    TYPE_INT,    DLOCALE(1051, #"Requests that have been waiting this many seconds on   the handler queue will not be processed. Instead, a 503 error code and the   \"Server too busy message\" will be returned to the client. This may help the   server to cut down the queue length after spikes of heavy load."))    ->add_changed_callback(lambda(object v)    { handler_queue_timeout = v->query(); });    handler_queue_timeout = query("handler_queue_timeout"); +  +  defvar("max_post_size", 128, +  DLOCALE(0, "Maximum POST Size"), +  TYPE_INT, +  DLOCALE(0, #"The maximum allowed size, in megabytes, of a POST + request. Requests larger than this size will be rejected with a 413 Request + Entity Too Large response. Set to 0 to disable (not recommended since a + sufficiently large POST request will consume all available system memory.)")) +  ->add_changed_callback(lambda(object v) +  { max_post_size = v->query() * 1024 * 1024; }); +  max_post_size = query("max_post_size") * 1024 * 1024;    }      #ifdef SNMP_AGENT    // SNMP stuffs    defvar("snmp_process", 0,    "SNMP: Enabled",TYPE_FLAG,    "If set, per-server objects will be added to the SNMP agent database.",    0, snmp_global_disabled);    defvar("snmp_community", "public:ro",    "SNMP: Community string", TYPE_STRING,