Commit 5f5fb8b3 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

vsl: New Timestamp:Fetch for backend tasks

If significant time is passed in vcl_backend_fetch it becomes difficult
to interpret Timestamp:Connected, which this new timestamp remedies.
parent 406c8476
...@@ -420,6 +420,7 @@ vbf_stp_startfetch(struct worker *wrk, struct busyobj *bo) ...@@ -420,6 +420,7 @@ vbf_stp_startfetch(struct worker *wrk, struct busyobj *bo)
if (wrk->handling == VCL_RET_ERROR) if (wrk->handling == VCL_RET_ERROR)
return (F_STP_ERROR); return (F_STP_ERROR);
VSLb_ts_busyobj(bo, "Fetch", W_TIM_real(wrk));
i = VDI_GetHdr(bo); i = VDI_GetHdr(bo);
now = W_TIM_real(wrk); now = W_TIM_real(wrk);
......
...@@ -20,6 +20,7 @@ varnish v1 -vcl+backend { ...@@ -20,6 +20,7 @@ varnish v1 -vcl+backend {
logexpect l1 -v v1 -q "vxid == 1004" { logexpect l1 -v v1 -q "vxid == 1004" {
expect * 1004 VCL_return {^fetch} expect * 1004 VCL_return {^fetch}
expect 0 1004 Timestamp {^Fetch:}
expect 0 1004 Timestamp {^Connected:} expect 0 1004 Timestamp {^Connected:}
expect 0 1004 BackendOpen {^\d+ s1} expect 0 1004 BackendOpen {^\d+ s1}
expect 0 1004 Timestamp {^Bereq:} expect 0 1004 Timestamp {^Bereq:}
......
...@@ -86,6 +86,9 @@ Backend fetch timestamps ...@@ -86,6 +86,9 @@ Backend fetch timestamps
Start Start
Start of the backend fetch processing. Start of the backend fetch processing.
Fetch
Came off vcl_backend_fetch ready to send the backend request.
Connected Connected
Successfully established or reused a backend connection. Successfully established or reused a backend connection.
......
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