From a29910a6b4359690d0f75eca99a3433f94e5fc26 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 17 Apr 2008 20:08:49 +0000 Subject: [PATCH] Missing handling of sp->restarts and sp->director. Spotted by: "postwait" git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2631 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_center.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/varnish-cache/bin/varnishd/cache_center.c b/varnish-cache/bin/varnishd/cache_center.c index a1546282..2ae2dcbc 100644 --- a/varnish-cache/bin/varnishd/cache_center.c +++ b/varnish-cache/bin/varnishd/cache_center.c @@ -170,6 +170,7 @@ cnt_deliver(struct sess *sp) } sp->director = NULL; + sp->restarts = 0; sp->backend = NULL; /* * XXX: we may want to leave this * behind to hint directors ? @@ -205,6 +206,7 @@ cnt_done(struct sess *sp) AZ(sp->obj); AZ(sp->bereq); sp->director = NULL; + sp->restarts = 0; sp->backend = NULL; /* * XXX: we may want to leave this * behind to hint directors ? @@ -364,6 +366,7 @@ cnt_fetch(struct sess *sp) if (sp->handling == VCL_RET_ERROR) sp->step = STP_ERROR; else { + sp->director = NULL; sp->restarts++; sp->step = STP_RECV; } -- 2.39.5