Hi all,

I'm compiling the ESI plugin in my trafficserver-3.3.1-dev from git

when i enable the esi.so and get the esi.html .The chrome return the blank
page with nothing

Here is the debug message
[Sep 22 11:59:41.940] Server {0x2ac882236700} DIAG: (plugin_esi)
[isInterceptRequest] Skipping external request
[Sep 22 11:59:41.940] Server {0x2ac882236700} DIAG: (plugin_esi)
[globalHookHandler] handling read request header event...
[Sep 22 11:59:41.940] Server {0x2ac882236700} DIAG: (plugin_esi)
[globalHookHandler] Not setting up intercept
[Sep 22 11:59:41.940] Server {0x2ac882236700} DIAG: (plugin_esi)
[isInterceptRequest] Skipping external request
[Sep 22 11:59:41.940] Server {0x2ac882236700} DIAG: (plugin_esi)
[globalHookHandler] handling cache lookup complete event...
[Sep 22 11:59:41.940] Server {0x2ac882236700} DIAG: (plugin_esi)
[globalHookHandler] handling cache lookup complete event...
[Sep 22 11:59:41.940] Server {0x2ac882236700} DIAG: (plugin_esi)
[isCacheObjTransformable] cache object's status is 0; not transformable

[Sep 22 11:59:41.941] Server {0x2ac882236700} DIAG: (plugin_esi)
[isInterceptRequest] Skipping external request
[Sep 22 11:59:41.941] Server {0x2ac882236700} DIAG: (plugin_esi)
[globalHookHandler] handling read response header event...
[Sep 22 11:59:41.941] Server {0x2ac882236700} DIAG: (plugin_esi)
[isCacheObjTransformable] cache object's status is 0; not transformable

[Sep 22 11:59:41.941] Server {0x2ac882236700} DIAG: (plugin_esi)
[getClientState] Got request URL [http://127.0.0.1/esi.html]
[Sep 22 11:59:41.942] Server {0x2ac882236700} DIAG:
(plugin_esi_vars_0x2ac89400ceb0) [populate] Not retaining header
[Connection]
[Sep 22 11:59:41.942] Server {0x2ac882236700} DIAG:
(plugin_esi_vars_0x2ac89400ceb0) [populate] Not retaining header
[Cache-Control]
[Sep 22 11:59:41.942] Server {0x2ac882236700} DIAG:
(plugin_esi_vars_0x2ac89400ceb0) [populate] Not retaining header
[Cache-Control]
[Sep 22 11:59:41.942] Server {0x2ac882236700} DIAG:
(plugin_esi_vars_0x2ac89400ceb0) [populate] Not retaining header [Pragma]

[Sep 22 11:59:41.942] Server {0x2ac882236700} DIAG:
(plugin_esi_vars_0x2ac89400ceb0) [populate] Not retaining header [Accept]

[Sep 22 11:59:41.942] Server {0x2ac882236700} DIAG:
(plugin_esi_vars_0x2ac89400ceb0) [populate] Not retaining header [Accept]
[Sep 22 11:59:41.942] Server {0x2ac882236700} DIAG:
(plugin_esi_vars_0x2ac89400ceb0) [populate] Not retaining header [Accept]
[Sep 22 11:59:41.942] Server {0x2ac882236700} DIAG:
(plugin_esi_vars_0x2ac89400ceb0) [populate] Not retaining header [Accept]
[Sep 22 11:59:41.942] Server {0x2ac882236700} DIAG:
(plugin_esi_vars_0x2ac89400ceb0) [populate] Not retaining header [Accept]
[Sep 22 11:59:41.942] Server {0x2ac882236700} DIAG:
(plugin_esi_vars_0x2ac89400ceb0) [populate] Not retaining header
[Accept-Encoding]
[Sep 22 11:59:41.942] Server {0x2ac882236700} DIAG: (plugin_esi)
[getClientState] Client accepts gzip encoding; will compress output
[Sep 22 11:59:41.942] Server {0x2ac882236700} DIAG:
(plugin_esi_vars_0x2ac89400ceb0) [populate] Not retaining header
[Accept-Encoding]
[Sep 22 11:59:41.942] Server {0x2ac882236700} DIAG:
(plugin_esi_vars_0x2ac89400ceb0) [populate] Not retaining header
[Accept-Encoding]
[Sep 22 11:59:41.942] Server {0x2ac882236700} DIAG:
(plugin_esi_vars_0x2ac89400ceb0) [populate] Not retaining header
[Accept-Charset]
[Sep 22 11:59:41.942] Server {0x2ac882236700} DIAG:
(plugin_esi_vars_0x2ac89400ceb0) [populate] Not retaining header
[Accept-Charset]

[Sep 22 11:59:41.942] Server {0x2ac882236700} DIAG:
(plugin_esi_vars_0x2ac89400ceb0) [populate] Not retaining header
[Accept-Charset]
[Sep 22 11:59:41.942] Server {0x2ac882236700} DIAG:
(plugin_esi_vars_0x2ac89400ceb0) [populate] Not retaining header
[Accept-Charset]
[Sep 22 11:59:41.942] Server {0x2ac882236700} DIAG: (plugin_esi)
[getServerState] Not retaining 'Content-length' header
[Sep 22 11:59:41.942] Server {0x2ac882236700} DIAG: (plugin_esi)
[getServerState] Not retaining 'X-Esi' header
[Sep 22 11:59:41.942] Server {0x2ac882236700} DIAG: (plugin_esi)
[addTransform] Added transformation (0x0x2ac89400ceb0)
[Sep 22 11:59:41.943] Server {0x2ac882236700} DIAG:
(plugin_esi_0x2ac89400ceb0) [init] Set input data type to [RAW_ESI]
[Sep 22 11:59:41.943] Server {0x2ac882236700} DIAG:
(plugin_esi_0x2ac89400ceb0) [transformHandler] initialized continuation data
[Sep 22 11:59:41.943] Server {0x2ac882236700} DIAG:
(plugin_esi_fetcher_0x2ac89400ceb0) [_isFetchEvent] Event id 1 not within
fetch event id range [10000, 10000)
[Sep 22 11:59:41.943] Server {0x2ac882236700} DIAG:
(plugin_esi_0x2ac89400ceb0) [transformHandler] handling
TS_EVENT_IMMEDIATE...
[Sep 22 11:59:41.943] Server {0x2ac882236700} DIAG:
(plugin_esi_0x2ac89400ceb0) [transformData] upstream VC has 165 bytes
available to read[Sep 22 11:59:41.943] Server {0x2ac882236700} DIAG:
(plugin_esi_0x2ac89400ceb0) [transformHandler] handling
TS_EVENT_IMMEDIATE...
[Sep 22 11:59:41.943] Server {0x2ac882236700} DIAG:
(plugin_esi_0x2ac89400ceb0) [transformData] upstream VC has 165 bytes
available to read
[Sep 22 11:59:41.943] Server {0x2ac882236700} DIAG:
(plugin_esi_processor_0x2ac89400ceb0) [addParseData] Implicit call to
start()
[Sep 22 11:59:41.943] Server {0x2ac882236700} DIAG:
(plugin_esi_parser_0x2ac89400ceb0) [_parse], Adding data of size 27 before
(newly found) ESI tag as PRE node
[Sep 22 11:59:41.943] Server {0x2ac882236700} DIAG:
(plugin_esi_parser_0x2ac89400ceb0) [_compareData] string [include ] is
equal to data at position 32
[Sep 22 11:59:41.943] Server {0x2ac882236700} DIAG:
(plugin_esi_parser_0x2ac89400ceb0) [_compareData] string [include ] is
equal to data at position 32
[Sep 22 11:59:41.943] Server {0x2ac882236700} DIAG:
(plugin_esi_parser_0x2ac89400ceb0) [_parse] Found [INCLUDE] tag at position
27
[Sep 22 11:59:41.943] Server {0x2ac882236700} DIAG:
(plugin_esi_parser_0x2ac89400ceb0) [_parse] Found [INCLUDE] tag at position
27
[Sep 22 11:59:41.943] Server {0x2ac882236700} DIAG:
(plugin_esi_parser_0x2ac89400ceb0) [_searchData] Found full match of /> in
[src="...] at position 95
[Sep 22 11:59:41.943] Server {0x2ac882236700} DIAG:
(plugin_esi_parser_0x2ac89400ceb0) [_parse] Handling include tag...
[Sep 22 11:59:41.943] Server {0x2ac882236700} DIAG:
(plugin_esi_parser_0x2ac89400ceb0) [_processIncludeTag] Added include tag
with url [http://61.160.245.195/esi.php][Sep 22 11:59:41.943] Server
{0x2ac882236700} DIAG: (plugin_esi_parser_0x2ac89400ceb0)
[_processIncludeTag] Added include tag with url [
http://61.160.245.195/esi.php]
[Sep 22 11:59:41.943] Server {0x2ac882236700} DIAG:
(plugin_esi_parser_0x2ac89400ceb0) [_parse] Added 2 node(s) during parse
[Sep 22 11:59:41.943] Server {0x2ac882236700} DIAG:
(plugin_esi_processor_0x2ac89400ceb0) [_preprocess] Adding fetch request
for url [http://61.160.245.195/esi.php]
[Sep 22 11:59:41.943] Server {0x2ac882236700} DIAG:
(plugin_esi_vars_0x2ac89400ceb0) [expand] Returning final expanded
expression [http://61.160.245.195/esi.php]
[Sep 22 11:59:41.943] Server {0x2ac882236700} DIAG:
(plugin_esi_failureInfo) [_preprocess] URL request [
http://61.160.245.195/esi.php] 2183358208
[Sep 22 11:59:41.943] Server {0x2ac882236700} DIAG:
(plugin_esi_fetcher_0x2ac89400ceb0) [_buildHeadersString] Building header
string...
[Sep 22 11:59:41.943] Server {0x2ac882236700} DIAG:
(plugin_esi_fetcher_0x2ac89400ceb0) [addFetchRequest] Successfully added
fetch request for URL [http://61.160.245.195/esi.php]
[Sep 22 11:59:41.943] Server {0x2ac882236700} DIAG:
(plugin_esi_0x2ac89400ceb0) [transformData] Added chunk of 165 bytes
starting with [<HTML>
<BO] to parse list
[Sep 22 11:59:41.943] Server {0x2ac882236700} DIAG:
(plugin_esi_0x2ac89400ceb0) [transformData] Added chunk of 165 bytes
starting with [<HTML>
<BO] to parse list
[Sep 22 11:59:41.944] Server {0x2ac882236700} DIAG:
(plugin_esi_0x2ac89400ceb0) [transformData] Consumed 165 bytes from
upstream VC
[Sep 22 11:59:41.944] Server {0x2ac882236700} DIAG:
(plugin_esi_0x2ac89400ceb0) [transformData] Completed reading input...[Sep
22 11:59:41.944] Server {0x2ac882236700} DIAG: (plugin_esi_0x2ac89400ceb0)
[transformData] Consumed 165 bytes from upstream VC
[Sep 22 11:59:41.944] Server {0x2ac882236700} DIAG:
(plugin_esi_0x2ac89400ceb0) [transformData] Completed reading input...
[Sep 22 11:59:41.944] Server {0x2ac882236700} DIAG:
(plugin_esi_parser_0x2ac89400ceb0) [_setup] Returning true for empty data
[Sep 22 11:59:41.944] Server {0x2ac882236700} DIAG:
(plugin_esi_parser_0x2ac89400ceb0) [_parse] Adding trailing text of size 68
starting at [
at t] as a PRE node
[Sep 22 11:59:41.944] Server {0x2ac882236700} DIAG:
(plugin_esi_parser_0x2ac89400ceb0) [_setup] Returning true for empty data
[Sep 22 11:59:41.944] Server {0x2ac882236700} DIAG:
(plugin_esi_parser_0x2ac89400ceb0) [_parse] Adding trailing text of size 68
starting at [
at t] as a PRE node
[Sep 22 11:59:41.944] Server {0x2ac882236700} DIAG:
(plugin_esi_parser_0x2ac89400ceb0) [_parse] Added 1 node(s) during parse
[Sep 22 11:59:41.944] Server {0x2ac882236700} DIAG:
(plugin_esi_processor_0x2ac89400ceb0) [_handleParseComplete] Parsed ESI
document with 3 nodes

[Sep 22 11:59:41.944] Server {0x2ac882236700} DIAG:
(plugin_esi_0x2ac89400ceb0) [transformData] Data not available yet; cannot
process document
[Sep 22 11:59:41.944] Server {0x2ac882236700} DIAG: (plugin_esi)
[isInterceptRequest] Method [GET] invalid, [POST] expected
[Sep 22 11:59:41.944] Server {0x2ac882236700} DIAG: (plugin_esi)
[globalHookHandler] handling read request header event...
[Sep 22 11:59:41.944] Server {0x2ac882236700} DIAG: (plugin_esi)
[globalHookHandler] Not setting up intercept
[Sep 22 11:59:41.944] Server {0x2ac882236700} DIAG: (plugin_esi)
[globalHookHandler] Not setting up intercept
[Sep 22 11:59:41.944] Server {0x2ac882236700} DIAG:
(plugin_esi_0x2ac89400ceb0) [transformHandler] Handling fetch event 10000...
[Sep 22 11:59:41.944] Server {0x2ac882236700} DIAG:
(plugin_esi_fetcher_0x2ac89400ceb0) [handleFetchEvent] Received non-OK
status 404 for request [http://61.160.245.195/esi.php]
[Sep 22 11:59:41.944] Server {0x2ac882236700} DIAG:
(plugin_esi_0x2ac89400ceb0) [transformHandler] fetcher is ready with data,
going into process stage
[Sep 22 11:59:41.944] Server {0x2ac882236700} DIAG:
(plugin_esi_0x2ac89400ceb0) [transformData] input_vio NULL, but processing
needs to (and can) be completed
[Sep 22 11:59:41.944] Server {0x2ac882236700} DIAG:
(plugin_esi_0x2ac89400ceb0) [transformData] data ready; going to process doc
[Sep 22 11:59:41.944] Server {0x2ac882236700} DIAG:
(plugin_esi_0x2ac89400ceb0) [transformData] data ready; going to process doc
[Sep 22 11:59:41.944] Server {0x2ac882236700} DIAG:
(plugin_esi_processor_0x2ac89400ceb0) [process] Processing ESI node [PRE]
with data of size 27 starting with [<HTML...][Sep 22 11:59:41.944] Server
{0x2ac882236700} DIAG: (plugin_esi_processor_0x2ac89400ceb0) [process]
Processing ESI node [PRE] with data of size 27 starting with [<HTML...]
[Sep 22 11:59:41.944] Server {0x2ac882236700} DIAG:
(plugin_esi_processor_0x2ac89400ceb0) [process] Processing ESI node
[INCLUDE] with data of size 0 starting with [(null...]

[Sep 22 11:59:41.945] Server {0x2ac882236700} DIAG:
(plugin_esi_0x2ac89400ceb0) [transformData] Compressed document from size 0
to 20 bytes
[Sep 22 11:59:41.945] Server {0x2ac88263a700} DIAG:
(plugin_esi_fetcher_0x2ac89400ceb0) [_isFetchEvent] Event id 1 not within
fetch event id range [10000, 10003)
[Sep 22 11:59:41.945] Server {0x2ac88263a700} DIAG:
(plugin_esi_0x2ac89400ceb0) [transformHandler] handling
TS_EVENT_IMMEDIATE...
[Sep 22 11:59:41.945] Server {0x2ac88263a700} DIAG:
(plugin_esi_0x2ac89400ceb0) [transformData] input_vio NULL, marking
transformation to be terminated
[Sep 22 11:59:41.954] Server {0x2ac882337700} DIAG: (plugin_esi)
[modifyResponseHeader] Removing header with name [Cache-Control]
[Sep 22 11:59:41.954] Server {0x2ac882337700} DIAG: (plugin_esi)
[modifyResponseHeader] Removing header with name [X-Esi]
[Sep 22 11:59:41.954] Server {0x2ac882337700} DIAG: (plugin_esi)
[modifyResponseHeader] Removing header with name [Age]
[Sep 22 11:59:41.954] Server {0x2ac882337700} DIAG: (plugin_esi)
[modifyResponseHeader] Inspected client-bound headers[Sep 22 11:59:41.954]
Server {0x2ac882337700} DIAG: (plugin_esi) [modifyResponseHeader] Inspected
client-bound headers
[Sep 22 11:59:41.954] Server {0x2ac88283c700} DIAG:
(plugin_esi_fetcher_0x2ac89400ceb0) [_isFetchEvent] Event id 103 not within
fetch event id range [10000, 10003)
[Sep 22 11:59:41.954] Server {0x2ac88283c700} DIAG:
(plugin_esi_0x2ac89400ceb0) [transformHandler] shutting down transformation

[Sep 22 11:59:41.964] Server {0x2ac880c67e20} DIAG:
(plugin_esi_0x2ac89400ceb0) [checkXformStatus] Vconn closed
[Sep 22 11:59:41.964] Server {0x2ac880c67e20} DIAG:
(plugin_esi_fetcher_0x2ac89400ceb0) [_isFetchEvent] Event id 1 not within
fetch event id range [10000, 10003)
[Sep 22 11:59:41.964] Server {0x2ac880c67e20} DIAG:
(plugin_esi_0x2ac89400ceb0) [transformHandler] Transformation closed.
Post-processing...
[Sep 22 11:59:41.964] Server {0x2ac880c67e20} DIAG:
(plugin_esi_0x2ac89400ceb0) [transformHandler] Processing is complete, not
processing current event 1
[Sep 22 11:59:41.964] Server {0x2ac880c67e20} DIAG:
(plugin_esi_0x2ac89400ceb0) [transformHandler] Processing is complete, not
processing current event 1
[Sep 22 11:59:41.964] Server {0x2ac880c67e20} DIAG:
(plugin_esi_0x2ac89400ceb0) [transformHandler] transformation closed;
cleaning up data...
[Sep 22 11:59:41.964] Server {0x2ac880c67e20} DIAG:
(plugin_esi_0x2ac89400ceb0) [~ContData] Destroying continuation data

[Sep 22 11:59:41.964] Server {0x2ac880c67e20} DIAG:
(plugin_esi_0x2ac89400ceb0) [~ContData] Destroying continuation data


It works for my get the http://61.160.245.195/esi.php .
why debug said 404?

Reply via email to