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.1125 2012/11/12 09:23:26 jonasw Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.1126 2012/12/12 15:03:39 grubba 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:4264:    // The error ought to have been reported in the page that    // generated the link to the image cache, but since it's too    // late for that now, we just log it as a (brief) server    // error with the referring page.    string errmsg = "Error in " + name + " image generation: " +    err->msg;    if (sizeof (id->referer))    errmsg += " Referrer: " + id->referer[0];    report_error (errmsg + "\n");    return 0; +  } else if (arrayp(err) && sizeof(err) && stringp(err[0])) { +  if (sscanf(err[0], "Requesting unknown key %s\n", +  string message) == 1) +  { +  // File not found. +  report_debug("Requesting unknown key %s %O from %O\n", +  message, +  id->not_query, +  (sizeof(id->referer)?id->referer[0]:"unknown page")); +  return 0;    } -  +  }    throw (err);    }    if( !(res = restore( na,id )) ) {    error("Draw callback %O did not generate any data.\n"    "na: %O\n"    "id: %O\n",    draw_function, na, id);    }    }    res->stat = ({ 0, 0, 0, 900000000, 0, 0, 0, 0, 0 });