Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1872:    res += sprintf("%d bytes ", strlen(m->data));    else if (objectp(m->file))    if (catch {    Stat a=m->file->stat();    res += sprintf("%O bytes ", a[1]-m->file->tell());    })    res += "? bytes ";       if (m->data) res += "(static)";    else if (m->file) res += "(open file)"; +  else if (m->upgrade_websocket) res += "(upgrade to websocket)";       if (stringp(m->extra_heads["content-type"]) ||    stringp(m->type)) {    res += sprintf(" of %O", m->type||m->extra_heads["content-type"]);    }       return res;   }      //! Find all applicable locks for this user on @[path].
Roxen.git/server/base_server/configuration.pike:2557:       TIMER_END(location_modules);    return Roxen.http_redirect(new_query, id);    }    }    TIMER_END(location_modules);    }       if(fid == -1)    { +  if (id->method == Roxen.WEBSOCKET_OPEN_METHOD) { +  // DWIM. +  TRACE_LEAVE("Websocket request. Returning 0."); +  return 0; +  }    if(no_magic)    {    TRACE_LEAVE("No magic requested. Returning -1.");    return -1;    }    TIMER_START(directory_module);    if(dir_module)    {    PROF_ENTER(dir_module->module_name,"directory");    LOCK(dir_module);
Roxen.git/server/base_server/configuration.pike:5462:    "Log rotation needs to be used using the \"Log file\" "    "filename substitutions "    "(e.g. <tt>$LOGDIR/mysite/Log.%y-%m-%d</tt>). "    "<b>Note&nbsp;2:</b> Compression is limited to scanning files "    "with filename substitutions within a fixed directory (e.g. "    "<tt>$LOGDIR/mysite/Log.%y-%m-%d</tt>, "    "not <tt>$LOGDIR/mysite/%y/Log.%m-%d</tt>)."),    0, lambda(){ return !query("Log");});       defvar("DaysToKeepLogFiles", 0, -  DLOCALE(0, "Logging: Number of days to keep log files"), TYPE_INT, -  DLOCALE(0, "Log files in the log directory older than specified number of " +  DLOCALE(1150, "Logging: Number of days to keep log files"), TYPE_INT, +  DLOCALE(1151, "Log files in the log directory older than specified number of "    "days will automatically be deleted. Set to <tt>0</tt> (<tt>zero</tt>) "    "to disable and keep log files forever. Currently active log file will "    "never be deleted, nor will files with names not matching the pattern "    "specified under <b>Log file</b>."))    ->set_range(0, Variable.no_limit);;       defvar("NoLog", ({ }),    DLOCALE(32, "Logging: No Logging for"), TYPE_STRING_LIST|VAR_MORE,    DLOCALE(33, "Don't log requests from hosts with an IP number which "    "matches any of the patterns in this list. This also affects "