Commit 3a1ba091 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland

Only look at client requests in varnishhist.

Without the -b -c options enabled, looking at backend requests becomes
ill-defined. Disable anything but non-esi client requests for
now. This can be extended in the future.
parent 18266c8b
......@@ -199,10 +199,14 @@ accumulate(struct VSL_data *vsl, struct VSL_transaction * const pt[],
(void)priv;
for (tr = pt[0]; tr != NULL; tr = *++pt) {
if (tr->type != VSL_t_req)
/* Only look at client requests */
continue;
if (tr->reason == VSL_r_esi)
/* Skip ESI requests */
continue;
value = -1;
hit = 0;
if (tr->type != VSL_t_bereq && tr->type != VSL_t_req)
continue;
while ((1 == VSL_Next(tr->c))) {
/* get the value we want, and register if it's a hit*/
tag = VSL_TAG(tr->c->rec.ptr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment