Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2004, Roxen IS.   //   // The Roxen WebServer main program.   //   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.967 2007/08/14 14:50:52 grubba Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.968 2007/09/06 12:17:52 grubba Exp $";      //! @appears roxen   //!   //! The Roxen WebServer main program.      // The argument cache. Used by the image cache.   ArgCache argcache;      // Some headerfiles   #define IN_ROXEN
Roxen.git/server/base_server/roxen.pike:635: Inside #if defined(THREADS) and #if defined(TEST_EUID_CHANGE)
   else    werror ("Handler thread %d can't read rootonly\n", id);    }   #endif    while(1)    {    int thread_flagged_as_busy;    if(q=catch {    do {   // if (!busy_threads) werror ("GC: %d\n", gc()); +  cache_clear_deltas();    THREAD_WERR("Handle thread ["+id+"] waiting for next event");    if(arrayp(h=handle_queue->read()) && h[0]) {    THREAD_WERR(sprintf("Handle thread [%O] calling %O(%{%O, %})",    id, h[0], h[1] / 1));    set_locale();    busy_threads++;    thread_flagged_as_busy = 1;    h[0](@h[1]);    h=0;    busy_threads--;
Roxen.git/server/base_server/roxen.pike:1374:    //! The number of references to this port       program requesthandler;    //! The per-connection request handling class       array(string) sorted_urls = ({});    //! Sorted by length, longest first       mapping(string:mapping) urls = ([]);    //! .. url -> ([ "conf":.., ... ]) +  //! +  //! Indexed by URL. The following data is stored: +  //! @mapping +  //! @entry Configuration "conf" +  //! The Configuration object for this URL. +  //! @entry string "hostname" +  //! The hostname from the URL. +  //! @entry string|void "path" +  //! The path (if any) from the URL. +  //! @entry Protocol "port" +  //! The protocol handler for this URL. +  //! @entry int "mib_version" +  //! (Only SNMP). The version number for the configuration MIB +  //! tree when it was last merged. +  //! @endmapping       mapping(Configuration:mapping) conf_data = ([]);    //! Maps the configuration objects to the data mappings in @[urls].       void ref(string name, mapping data)    //! Add a ref for the URL 'name' with the data 'data'    {    if(urls[name])    {    conf_data[urls[name]->conf] = urls[name] = data;
Roxen.git/server/base_server/roxen.pike:5042:    if(tmp_root = Getopt.find_option(argv, "r", "root")) fix_root(tmp_root);       argv -= ({ 0 });    argc = sizeof(argv);       fonts = ((program)"base_server/fonts.pike")();       DDUMP( "languages/abstract.pike" );    initiate_languages(query("locale"));    +  cache_clear_deltas();    set_locale();      #if efun(syslog)    init_logger();   #endif    init_garber();       initiate_supports();    initiate_argcache();    init_configuserdb();