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 - 2009, Roxen IS. + // Copyright 1996 - 2009, Roxen IS.   //   // The Roxen WebServer main program.   // - // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others. + // Per Hedbor, Henrik Grubbstr�m, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli      constant cvs_version="$Id$";      //! @appears roxen   //!   //! The Roxen WebServer main program.      // The argument cache. Used by the image cache.   ArgCache argcache;
Roxen.git/server/base_server/roxen.pike:3254:    if (required_host == "::") opened_ipv6_any_port = 1;       m[required_host][port]->ref(url, urls[url]);       urls[url]->port = m[required_host][port];    if (urls[url]->ports) {    urls[url]->ports += ({ m[required_host][port] });    } else {    urls[url]->ports = ({ m[required_host][port] });    } +  if (ourl != url) {    urls[ourl]->port = m[required_host][port];    if (urls[ourl]->ports) {    urls[ourl]->ports += ({ m[required_host][port] });    } else {    urls[ourl]->ports = ({ m[required_host][port] });    } -  +  }    continue; /* No need to open a new port */    }       if( !m[ required_host ] )    m[ required_host ] = ([ ]);          Protocol prot_obj;    if (mixed err = catch {    prot_obj = m[ required_host ][ port ] =
Roxen.git/server/base_server/roxen.pike:3314:    m_delete (m[required_host], port);    continue;    }       urls[ url ]->port = prot_obj;    if (urls[url]->ports) {    urls[url]->ports += ({ prot_obj });    } else {    urls[url]->ports = ({ prot_obj });    } +  if (ourl != url) {    urls[ ourl ]->port = prot_obj;    if (urls[ourl]->ports) {    urls[ourl]->ports += ({ prot_obj });    } else {    urls[ourl]->ports = ({ prot_obj });    } -  +  }    prot_obj->ref(url, urls[url]);       if( !prot_obj->bound )    failures++;    }    if (failures == sizeof(required_hosts))    {    report_error(LOC_M(23, "Failed to register URL %s for %O.")+"\n",    display_url, conf->query_name());    return 0;
Roxen.git/server/base_server/roxen.pike:5255:       int key_exists( string id )    //! Does the key @[id] exist in the cache? Returns 1 if it does, 0    //! if it was not present.    {    if( cache[id] ) return 1;    if (read_encoded_args(id, 0) || plugins_read_encoded_args(id)) return 1;    return 0;    }    - #define SECRET_TAG "££" + #define SECRET_TAG "��"       int write_dump(Stdio.File file, int from_time)    //! Dumps all entries that have been @[refresh_arg]'ed at or after    //! @[from_time] to @[file]. All existing entries are dumped if    //! @[from_time] is zero.    //!    //! @returns    //! Returns 0 if writing failed, -1 if there was no new entries, 1    //! otherwise.    //!
Roxen.git/server/base_server/roxen.pike:6738: Inside #if constant(syslog)
  #if constant(syslog)    init_logger();   #endif    init_garber();       initiate_supports();    initiate_argcache();    init_configuserdb();    cache.init_session_cache();    +  // Report unhandled Promise rejections. +  Concurrent.on_failure(lambda(mixed err) +  { +  string description; +  if (objectp (err) && functionp(err->describe)) { +  description = err->describe(); +  } else if (arrayp (err) && sizeof (err) == 2) { +  description = describe_backtrace (err); +  } else { +  description = sprintf ("%O", err); +  } +  report_error("Unhandled error in Promise.\n" +  "Error: %s\n", description); +  }); +     protocols = build_protocols_mapping();       int t = gethrtime();    report_debug("Searching for pike-modules directories ... \b");    foreach( find_all_pike_module_directories( ), string d )    master()->add_module_path( d );    report_debug("\bDone [%dms]\n", (gethrtime()-t)/1000 );      #ifdef SMTP_RELAY    smtp_relay_start();