From: phk Date: Tue, 11 Nov 2008 19:06:55 +0000 (+0000) Subject: Implement restart in vcl_hit. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e02d52916d7dde994da8dd3d35243c3b387ed11;p=varnish Implement restart in vcl_hit. Fixes #365 git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3386 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- 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{}");