Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2004, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.628 2006/12/05 15:50:04 grubba Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.629 2006/12/05 15:51:24 grubba Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>   #include <timers.h>      #define CATCH(P,X) do{mixed e;if(e=catch{X;})report_error("While "+P+"\n"+describe_backtrace(e));}while(0)      // --- Locale defines ---   //<locale-token project="roxen_start"> LOC_S </locale-token>
Roxen.git/server/base_server/configuration.pike:305:    {    current_size=0;    return;    }       // The following code should be ~O(n * log(n)).    sort(q);    for(int i = 0; i < sizeof(q)/10; i++) {    int r = random(sizeof(q));    string key_prefix = q[r = random(sizeof(q))]; +  if (!key_prefix) continue;    for(;r < sizeof(q); r++,i++) { -  if (!q[r]) break; +  if (!q[r]) continue;    if (!has_prefix(q[r], key_prefix)) break;    really_low_expire_entry(q[r]);    q[r] = 0;    }    }    }       void set(string url, string data, mapping meta, int expire, RequestID id)    {    if( strlen( data ) > max_file_size ) return;