From: tfheen Date: Mon, 19 Jan 2009 14:28:07 +0000 (+0000) Subject: Merge r3386: X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7132ee0458fa80c0630b4a65775030a909008cfd;p=varnish 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 --- 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{}");