Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // This file is part of Internet Server.   // Copyright © 1996 - 2001, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.528 2002/06/19 22:59:36 nilsson Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.529 2002/07/03 12:38:47 nilsson Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>   #include <timers.h>      #define CATCH(P,X) do{mixed e;if(e=catch{X;})report_error("While "+P+"\n"+describe_backtrace(e));}while(0)      #ifdef THROTTLING_DEBUG   #undef THROTTLING_DEBUG
Roxen.git/server/base_server/configuration.pike:1720:   //! modules, including the filter modules. This function is mostly a   //! wrapper for <ref>low_get_file()</ref>.   {    TIMER_START(get_file);    int orig_internal_get = id->misc->internal_get;    id->misc->internal_get = internal_get;    RequestID root_id = id->root_id || id;    int sub_req_limit = query("SubRequestLimit");    root_id->misc->_request_depth++;    if(sub_req_limit && root_id->misc->_request_depth > sub_req_limit) -  throw( ({ "Subrequest limit reached. (Possibly an insertion loop.)", backtrace() }) ); +  error( "Subrequest limit reached. (Possibly an insertion loop.)" );       mapping|int res;    mapping res2;    function tmp;    res = low_get_file(id, no_magic);    TIMER_END(get_file);       // finally map all filter type modules.    // Filter modules are like TYPE_LAST modules, but they get called    // for _all_ files.
Roxen.git/server/base_server/configuration.pike:2370:    return 0;   }      array registered_urls = ({}), failed_urls = ({ });   array do_not_log_patterns = 0;   void start(int num)   {    fix_my_url();      #if 0 -  report_debug(sprintf("configuration:start():\n" +  report_debug("configuration:start():\n"    " registered_urls: ({ %{%O, %}})\n"    " failed_urls: ({ %{%O, %}})\n"    " URLs: ({ %{%O, %}})\n",    registered_urls,    failed_urls, -  query("URLs"))); +  query("URLs"));   #endif /* 0 */       // Note: This is run as root if roxen is started as root    foreach( (registered_urls-query("URLs"))+failed_urls, string url )    {    registered_urls -= ({ url });    roxen.unregister_url(url, this_object());    }       failed_urls = ({ });