From 7132ee0458fa80c0630b4a65775030a909008cfd Mon Sep 17 00:00:00 2001 From: tfheen Date: Mon, 19 Jan 2009 14:28:07 +0000 Subject: [PATCH] Merge r3386: Implement restart in vcl_hit. Fixes #365 git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3536 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 6ed0afa4..52878f91 100644 --- a/varnish-cache/bin/varnishd/cache_center.c +++ b/varnish-cache/bin/varnishd/cache_center.c @@ -548,7 +548,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