Branch: Tag:

2001-08-05

2001-08-05 20:14:56 by Martin Nilsson <mani@lysator.liu.se>

No more fhttp.

Rev: server/base_server/configuration.pike:1.460
Rev: server/base_server/global_variables.pike:1.76
Rev: server/base_server/roxen.pike:1.688
Rev: server/etc/modules/Roxen.pmod:1.108
Rev: server/etc/modules/Variable.pmod/module.pmod:1.61
Rev: server/modules/logging/roxen_network.pike:1.6

1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2001, Roxen IS. - // $Id: global_variables.pike,v 1.75 2001/07/31 09:32:21 per Exp $ + // $Id: global_variables.pike,v 1.76 2001/08/05 20:06:17 nilsson Exp $      // #pragma strict_types   #define DEFVAR mixed...:object
97:   }       - void set_up_http_variables( Protocol o, int|void fhttp ) + void set_up_http_variables( Protocol o )   {    function(DEFVAR) defvar = o->defvar;   
121:    "This is very useful if you are debugging your own modules "    "or writing Pike scripts."));    -  if(!fhttp) -  { +     defvar("set_cookie", 0, LOCALE(74, "Logging: Set unique user id cookies"),    TYPE_FLAG,    LOCALE(75, "If set to Yes, all users of your server whose clients "
139:    "the cookie to be set, she won't be bothered with "    "multiple requests."),0, do_set_cookie( o ));    } - } +     - void set_up_fhttp_variables( Protocol o ) - { -  function(BDEFVAR) defvar = o->defvar; -  -  defvar( "log", "None", LOCALE(78, "Logging method"), -  TYPE_STRING_LIST, -  LOCALE(79, "None - No log<br />" -  "CommonLog - A common log in a file<br />" -  "Compat - Log through Roxen's normal logging format.<br />" -  "<p>Please note that compat limits Roxen to less than 1k " -  "requests/second.</p>"), -  ({ "None", "CommonLog", "Compat" })); -  -  defvar( "log_file", "$LOGDIR/clog-"+o->ip+":"+o->port, -  LOCALE(80, "Log file"), -  TYPE_FILE, -  LOCALE(81, "This file is used if logging is done using the " -  "CommonLog method.")); -  -  defvar( "ram_cache", 20, LOCALE(82, "Ram cache"), -  TYPE_INT, -  LOCALE(83, "The size of the ram cache, in MegaBytes")); -  -  defvar( "read_timeout", 120, LOCALE(84, "Client timeout"), -  TYPE_INT, -  LOCALE(85, "The maximum time Roxen will wait for a client " -  "before giving up, and close the connection, in seconds")); -  -  set_up_http_variables( o,1 ); -  - } -  +    void set_up_ssl_variables( Protocol o )   {    function(DEFVAR) defvar = o->defvar;