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 - 2001, 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.816 2002/12/09 12:53:57 grubba Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.817 2003/01/13 15:07:37 mast 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:89:    string fname = master()->program_name( o );    if( !fname )    fname = "Unknown Program";    return fname-(getcwd()+"/");   }      // Note that 2.5 is a nonexisting version. It's only used for the   // cache static optimization for tags such as <if> and <emit> inside   // <cache> since that optimization can give tricky incompatibilities   // with 2.4. - array(string) compat_levels = ({"2.1", "2.2", "2.4", "2.5", "3.3"}); + array(string) compat_levels = ({"2.1", "2.2", "2.4", "2.5", "3.3", "3.4"});      #ifdef THREADS   mapping(string:string) thread_names = ([]);   string thread_name( object thread )   {    string tn;    if( thread_names[ tn=sprintf("%O",thread) ] )    return thread_names[tn];    return tn;   }
Roxen.git/server/base_server/roxen.pike:3500:    mapping lookup( string id )    //! Recall a mapping stored in the cache.    {    if( cache[id] )    return cache[id]+([]);    array i = decode_id( id );    if( !i )    error("Requesting unknown key\n");    array a = low_lookup( i[0] );    array b = low_lookup( i[1] ); -  if( a && b ) +  if (!arrayp (a) || !arrayp (b) || sizeof (a) != sizeof (b)) +  // Got lookup with ids from an old cache which has been zapped, +  // and the entries are now used for something else. +  error("Requesting unknown key\n");    return (cache[id] = mkmapping( a, b ))+([]);    }       array low_lookup( int id )    {    mixed v;    if( v = cache[id] )    return v;    string q = read_args( id );    if( !q )