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 - 2004, 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.968 2007/09/06 12:17:52 grubba Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.969 2007/09/10 11:55:51 grubba Exp $";      //! @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:1478:    return port_obj && port_obj->query_address();    }       mapping mu;    string rrhf;    static void got_connection()    {    Stdio.File q;    while( q = accept() )    { -  if( !requesthandler ) +  if( !requesthandler && rrhf )    {    requesthandler = (program)(rrhf);    }    Configuration c;    if( refs < 2 )    {    if(!mu)    {    mu = urls[sorted_urls[0]];    if(!(c=mu->conf)->inited )
Roxen.git/server/base_server/roxen.pike:1800:    return sprintf("%d.%d.%d.%d", @((array(int))bytes));    }    }       static void setup (int pn, string i)    {    port = pn;    ip = canonical_ip(i);       restore(); +  if (sizeof(requesthandlerfile)) {    if( file_stat( "../local/"+requesthandlerfile ) )    rrhf = "../local/"+requesthandlerfile;    else    rrhf = requesthandlerfile;    DDUMP( rrhf );   #ifdef DEBUG    if( !requesthandler )    requesthandler = (program)(rrhf);   #endif -  +  }    bound = 0;    port_obj = 0;    retries = 0;    }       static void create( int pn, string i, void|int ignore_eaddrinuse )    //! Constructor. Bind to the port 'pn' ip 'i'    {    setup (pn, i);    bind (ignore_eaddrinuse);