Commit ebf15ebd authored by Tollef Fog Heen's avatar Tollef Fog Heen

Ignore piped requests in varnishncsa, since we probably miss some of their information

Fixes: #918
parent 76fc17c1
......@@ -426,8 +426,10 @@ collect_client(struct logline *lp, enum vsl_tag tag, unsigned spec,
lp->df_hitmiss = "miss";
lp->df_handling = "pass";
} else if (strncmp(ptr, "pipe", len) == 0) {
lp->df_hitmiss = "miss";
lp->df_handling = "pipe";
/* Just skip piped requests, since we can't
* print their status code */
clean_logline(lp);
break;
}
break;
......@@ -587,7 +589,7 @@ h_ncsa(void *priv, enum vsl_tag tag, unsigned fd,
case 's':
/* %s */
fprintf(fo, "%s", lp->df_s);
fprintf(fo, "%s", lp->df_s ? lp->df_s : "");
break;
case 't':
......
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