Commit 8c71f341 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Missing handling of sp->restarts and sp->director.

Spotted by:	"postwait"


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2631 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 511fe73b
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment