From 839a48e4844fa82bbe0b982ecda4abba8238ad5d Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 23 Aug 2006 11:27:54 +0000 Subject: [PATCH] Implement error in miss also git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@905 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_center.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/varnish-cache/bin/varnishd/cache_center.c b/varnish-cache/bin/varnishd/cache_center.c index b6e5af92..cce8898f 100644 --- a/varnish-cache/bin/varnishd/cache_center.c +++ b/varnish-cache/bin/varnishd/cache_center.c @@ -450,8 +450,14 @@ cnt_miss(struct sess *sp) { VCL_miss_method(sp); - if (sp->handling == VCL_RET_ERROR) - INCOMPL(); + if (sp->handling == VCL_RET_ERROR) { + sp->obj->cacheable = 0; + HSH_Unbusy(sp->obj); + HSH_Deref(sp->obj); + sp->obj = NULL; + sp->step = STP_ERROR; + return (0); + } if (sp->handling == VCL_RET_PASS) { sp->obj->cacheable = 0; HSH_Unbusy(sp->obj); -- 2.39.5