From 4ad33d8df7261d0c77a523efed25c846f789901c Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Tue, 16 Sep 2008 11:29:22 +0200 Subject: [PATCH] Make "now" available in vcl_error too This, together with the previous couple of commits completely addresses the code aspects of bug #294. --- varnish-cache/lib/libvcl/vcc_gen_obj.tcl | 2 +- varnish-cache/lib/libvcl/vcc_obj.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/varnish-cache/lib/libvcl/vcc_gen_obj.tcl b/varnish-cache/lib/libvcl/vcc_gen_obj.tcl index 28e76c4e..95c84f8d 100755 --- a/varnish-cache/lib/libvcl/vcc_gen_obj.tcl +++ b/varnish-cache/lib/libvcl/vcc_gen_obj.tcl @@ -213,7 +213,7 @@ set spobj { # XXX: or delta times in VCL programs, so this shouldn't be needed /phk { now RO TIME - {recv pipe pass hash miss hit fetch deliver discard timeout} + {recv pipe pass hash miss hit fetch deliver discard timeout error} "const struct sess *" } { req.backend.healthy RO BOOL diff --git a/varnish-cache/lib/libvcl/vcc_obj.c b/varnish-cache/lib/libvcl/vcc_obj.c index 37f14364..31ef1ea0 100644 --- a/varnish-cache/lib/libvcl/vcc_obj.c +++ b/varnish-cache/lib/libvcl/vcc_obj.c @@ -193,7 +193,7 @@ struct var vcc_vars[] = { V_RO, 0, VCL_MET_RECV | VCL_MET_PIPE | VCL_MET_PASS | VCL_MET_HASH | VCL_MET_MISS | VCL_MET_HIT | VCL_MET_FETCH | VCL_MET_DELIVER - | VCL_MET_DISCARD | VCL_MET_TIMEOUT + | VCL_MET_DISCARD | VCL_MET_TIMEOUT | VCL_MET_ERROR }, { "req.backend.healthy", BOOL, 19, "VRT_r_req_backend_healthy(sp)", NULL, -- 2.39.5