Roxen.git / server / modules / tags / insert_cached_href.pike

version» Context lines:

Roxen.git/server/modules/tags/insert_cached_href.pike:1:   // This is a roxen module. Copyright © 2000 - 2004, Roxen IS.   //      #include <module.h>   inherit "module";      //<locale-token project="mod_insert_cached_href">LOCALE</locale-token>   #define LOCALE(X,Y) _DEF_LOCALE("mod_insert_cached_href",X,Y)    - constant cvs_version = "$Id: insert_cached_href.pike,v 1.22 2008/03/31 14:19:48 liin Exp $"; + constant cvs_version = "$Id: insert_cached_href.pike,v 1.23 2008/09/09 11:15:10 liin Exp $";      constant thread_safe = 1;   constant module_type = MODULE_TAG;   LocaleString module_name = LOCALE(1, "Tags: Insert cached href");   LocaleString module_doc = LOCALE(2, "This module contains the RXML tag \"insert "    "cached-href\". Useful when implementing e.g."    " RSS syndication.");      #if DEBUG_INSERT_CACHED_HREF   #define DWRITE(x) report_debug("INSERT_CACHED_HREF: " + x + "\n")
Roxen.git/server/modules/tags/insert_cached_href.pike:761:    finish_up();       if (sync) {    queue->write("@");    return;    }       mapping args = (["cached-href" : (string)url,    "timeout" : timeout,    "sync" : 0]); +  get_result_async(this_object(), args, ([ "x-roxen-recursion-depth" : request_headers["x-roxen-recursion-depth"]]));    -  get_result_async(this_object(), args, request_headers); -  +     return;    }       /*    HTTP status code OK, continuing    with data fetch:    */    int data_timeout = timeout - (time() - start_time);    con->data_timeout = data_timeout >= 0 ? data_timeout : 0;    con->timed_async_fetch(data_ok, data_fail);