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.   //   // 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.1105 2012/01/26 11:12:10 mast Exp $"; + constant cvs_version="$Id$";      //! @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:2065:    {    mapping(string:mixed) url_data = find_url_data_for_url (url, 0, id);       if (!url_data) {    // Pick the first default server available. FIXME: This makes    // it impossible to handle the server path correctly.    foreach (configurations, Configuration c)    if (c->query ("default_server")) {    URL2CONF_MSG ("%O %O any default server: %O\n", this, url, c);    if (id) id->misc->defaulted_conf = 3; -  if(!c->inited) -  // FIXME: We can be called from the backend thread, so -  // this should be queued for a handler thread. -  c->enable_all_modules(); +     return c;    }       // if we end up here, there is no default port at all available    // so grab the first configuration that is available at all.    // We choose the last entry in sorted_urls since that's the most    // generic one and therefore probably the best option for a    // fallback.    url_data = urls[sorted_urls[-1]];    if (id) {
Roxen.git/server/base_server/roxen.pike:2093:    url_data->conf);    }       // It's assumed nothing below uses data in this object, since    // find_url_data_for_url might have switched Protocol object.       string config_path = url_data->path;    if (config_path && id && id->adjust_for_config_path)    id->adjust_for_config_path (config_path);    Configuration c = url_data->conf; -  if(!c->inited) -  // FIXME: We can be called from the backend thread, so this -  // should be queued for a handler thread. -  c->enable_all_modules(); +     return c;    }       mixed query_option( string x )    //! Query the port-option 'x' for this port.    {    return query( x );    }       string get_key()