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.903 2006/10/25 08:04:16 noring Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.904 2006/11/23 14:02:30 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:3785:    if(s == "EOF")    return 0;    array a;    if(catch {    a = decode_value(MIME.decode_base64(s));    }) return "Decode failed for argcache record\n";       if(sizeof(a) == 4) {    // Old style argcache dump.    dwerror("ArgCache.read_dump(): value_id: %O, index_id: %O.\n", a[0], a[2]); -  store(mkmapping(decode_value(a[1]), decode_value(a[3]))); +  if (a[2] == -1) +  // The old write_dump didn't filter out entries with NULL +  // index_id when from_time was zero, so we ignore them here +  // instead. +  dwerror ("ArgCache.read_dump(): entry ignored.\n"); +  else { +  array v = decode_value(a[1]), i = decode_value(a[3]); + #if 0 +  dwerror ("ArgCache.read_dump(): values: %O, indices: %O\n", v, i); + #endif +  store(mkmapping(i, v)); +  }    } else if (sizeof(a) == 2) {    // New style argcache dump.    dwerror("ArgCache.read_dump(): %O\n", a[0]);    create_key(a[0], a[1]);    } else    return "Decode failed for argcache record (wrong size on key array)\n";    }    if(s != "EOF")    return "Missing data in argcache file\n";    return 0;