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.1108 2012/02/14 18:06:51 jonasw Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.1109 2012/02/14 22:20:52 jonasw 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:132:   // 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", "3.4",    "4.0", "4.5",    "5.0", "5.1", "5.2" });      #ifdef THREADS   mapping(string:string) thread_names = ([]); - string thread_name( object thread ) + string thread_name( object thread, int|void skip_auto_name )   {    string tn; -  if( thread_names[ tn=sprintf("%O",thread) ] ) +  if( thread_names[ tn=sprintf("%O",thread) ] || skip_auto_name )    return thread_names[tn];    return tn;   }      void name_thread( object thread, string name )   {    thread_names[ sprintf( "%O", thread ) ] = name;   }      // This mutex is used by Privs
Roxen.git/server/base_server/roxen.pike:5718:   constant cdt_poll_interval = 5; // Seconds.   constant cdt_dump_seq_interval = 60;      string cdt_directory, cdt_filename;      Thread.Thread cdt_thread;   int cdt_next_seq_dump;      void cdt_poll_file()   { +  name_thread(this_thread(), "Dump thread file monitor");    while (this && query ("dump_threads_by_file")) {    if (array(string) dir = r_get_dir (cdt_directory)) {    if (has_value (dir, cdt_filename)) {    r_rm (cdt_directory + "/" + cdt_filename);    describe_all_threads();    }    else if (time() >= cdt_next_seq_dump) {    dir = glob (cdt_filename + ".*", dir);    if (sizeof (dir)) {    string file = dir[0];