From 7e02d52916d7dde994da8dd3d35243c3b387ed11 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 11 Nov 2008 19:06:55 +0000 Subject: [PATCH] Implement restart in vcl_hit. Fixes #365 git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3386 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_center.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/varnish-cache/bin/varnishd/cache_center.c b/varnish-cache/bin/varnishd/cache_center.c index e3a91509..9d451f4f 100644 --- a/varnish-cache/bin/varnishd/cache_center.c +++ b/varnish-cache/bin/varnishd/cache_center.c @@ -543,7 +543,9 @@ cnt_hit(struct sess *sp) sp->step = STP_ERROR; return (0); case VCL_RET_RESTART: - INCOMPL(); + sp->director = NULL; + sp->restarts++; + sp->step = STP_RECV; return (0); default: WRONG("Illegal action in vcl_hit{}"); -- 2.39.5