Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2001, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.493 2001/11/07 14:02:17 grubba Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.494 2001/11/09 15:55:43 grubba 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)      // --- Locale defines ---   //<locale-token project="roxen_start"> LOC_S </locale-token>
Roxen.git/server/base_server/configuration.pike:341:   private array (function) logger_module_cache, first_module_cache;   private array (function) filter_module_cache;   private array (array (string|function)) location_module_cache;   private mapping (string:array (function)) file_extension_module_cache=([]);   private mapping (string:array (RoxenModule)) provider_module_cache=([]);   private array (RoxenModule) auth_module_cache, userdb_module_cache;         void unregister_urls()   { -  foreach( registered_urls, string url ) -  roxen.unregister_url(url); +  foreach( registered_urls + failed_urls, string url ) +  roxen.unregister_url(url, this_object());    registered_urls = ({});   }      private int num_modules = 0;   #ifdef THREADS   private Thread.Condition modules_stopped = Thread.Condition();   #endif   private void safe_stop_module (RoxenModule mod, string desc)   {    if (mixed err = catch (mod && mod->stop && mod->stop()))
Roxen.git/server/base_server/configuration.pike:2344:      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"    " registered_urls: ({ %{%O, %}})\n" -  " faileded_urls: ({ %{%O, %}})\n" +  " failed_urls: ({ %{%O, %}})\n"    " URLs: ({ %{%O, %}})\n",    registered_urls,    failed_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 ); +  roxen.unregister_url(url, this_object());    }       failed_urls = ({ });       foreach( (query( "URLs" )-registered_urls), string url )    {    if( roxen.register_url( url, this_object() ) )    registered_urls += ({ url });    else    failed_urls += ({ url });