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.902 2006/10/20 14:29:10 mast Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.903 2006/10/25 08:04:16 noring 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:6284:    // Don't try to compress the active log just yet...    continue;    if(Regexp("^"+replace(basename(fname),    ({ "%y", "%m", "%d", "%h", "%H" }),    ({ "[0-9][0-9][0-9][0-9]", "[0-9][0-9]",    "[0-9][0-9]", "[0-9][0-9]", "(.+)" }))+"$")->    match(filename_candidate))    {    string compress_file = combine_path(dir, filename_candidate);    Stdio.Stat stat = file_stat(compress_file); -  if(!stat || time(1) < stat->mtime + 300) -  // Wait at least 5 minutes before compressing log file... +  if(!stat || time(1) < stat->mtime + 1200) +  // Wait at least 20 minutes before compressing log file...    continue;    werror("Compressing log file %O\n", compress_file);    compressor_process = Process.create_process(({ compressor_program,    compress_file }));    return;    }    }    }       void do_open()