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.555 2004/04/19 16:44:57 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.556 2004/04/20 14:06:45 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:1796:    TRY_FIRST_MODULES (file, handle_request (id, recurse_count + 1));    if(!mappingp(file) && !mappingp(file = get_file(id)))    TRY_LAST_MODULES (file, handle_request(id, recurse_count + 1));    TIMER_END(handle_request);       REQUEST_WERR("handle_request(): Done");    MERGE_TIMERS(roxen);    return file;   }    - mapping get_file(RequestID id, int|void no_magic, int|void internal_get) + mapping|int get_file(RequestID id, int|void no_magic, int|void internal_get)   //! Return a result mapping for the id object at hand, mapping all   //! 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;    root_id->misc->_request_depth++;    if(sub_req_limit && root_id->misc->_request_depth > sub_req_limit)
Roxen.git/server/base_server/configuration.pike:1825:    // finally map all filter type modules.    // Filter modules are like TYPE_LAST modules, but they get called    // for _all_ files.    TIMER_START(filter_modules);    foreach(filter_module_cache||filter_modules(), tmp)    {    TRACE_ENTER("Filter module", tmp);    PROF_ENTER(Roxen.get_owning_module(tmp)->module_name,"filter");    if(res2=tmp(res,id))    { -  if(res && res->file && (res2->file != res->file)) +  if(mappinp(res) && res->file && (res2->file != res->file))    destruct(res->file);    TRACE_LEAVE("Rewrote result.");    res=res2;    } else    TRACE_LEAVE("");    PROF_LEAVE(Roxen.get_owning_module(tmp)->module_name,"filter");    }    TIMER_END(filter_modules);       root_id->misc->_request_depth--;