From: phk Date: Thu, 17 Apr 2008 20:08:49 +0000 (+0000) Subject: Missing handling of sp->restarts and sp->director. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a29910a6b4359690d0f75eca99a3433f94e5fc26;p=varnish 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 --- 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; }