[master] f993d44 On retries a complete request is logged.
Arianna Aondio
arianna.aondio at varnish-software.com
Fri Mar 13 12:58:50 CET 2015
commit f993d444e97b73536058db456cf2f4e7f2c11396
Author: Arianna Aondio <arianna.aondio at varnish-software.com>
Date: Fri Mar 13 12:54:29 2015 +0100
On retries a complete request is logged.
Previously BereqMethod,BereqUrl,BereqProtocol and BereqHeader(s) were
not logged.
Fixes #1684
diff --git a/bin/varnishd/cache/cache_fetch.c b/bin/varnishd/cache/cache_fetch.c
index 1c59ab5..f39fb81 100644
--- a/bin/varnishd/cache/cache_fetch.c
+++ b/bin/varnishd/cache/cache_fetch.c
@@ -243,6 +243,7 @@ vbf_stp_retry(struct worker *wrk, struct busyobj *bo)
// XXX: BereqEnd + BereqAcct ?
VSL_ChgId(bo->vsl, "bereq", "retry", VXID_Get(wrk, VSL_BACKENDMARKER));
VSLb_ts_busyobj(bo, "Start", bo->t_prev);
+ http_VSL_log(bo->bereq);
return (F_STP_STARTFETCH);
}
@@ -269,6 +270,7 @@ vbf_stp_startfetch(struct worker *wrk, struct busyobj *bo)
AZ(bo->req);
http_PrintfHeader(bo->bereq, "X-Varnish: %u", VXID(bo->vsl->wid));
+ bo->bereq->nhd--;
VCL_backend_fetch_method(bo->vcl, wrk, NULL, bo, bo->bereq->ws);
More information about the varnish-commit
mailing list