]> err.no Git - varnish/commitdiff
Implement restart in vcl_hit.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 11 Nov 2008 19:06:55 +0000 (19:06 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 11 Nov 2008 19:06:55 +0000 (19:06 +0000)
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

index e3a91509ef938c25951cfa9c7eb7a7e9861bfcd0..9d451f4f6b10da77ff2b2fa0b076639e44202a04 100644 (file)
@@ -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{}");