Commit a23691a4 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Make Pass possible from vcl_hit()


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@458 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 85e0338e
......@@ -225,11 +225,23 @@ cnt_hit(struct worker *w, struct sess *sp)
{
VCL_hit_method(sp);
vca_write_obj(w, sp);
HSH_Deref(sp->obj);
sp->obj = NULL;
sp->step = STP_DONE;
if (sp->handling == VCL_RET_LOOKUP)
INCOMPL();
if (sp->handling == VCL_RET_PASS) {
PassSession(w, sp);
sp->step = STP_DONE;
return;
}
if (sp->handling == VCL_RET_ERROR)
INCOMPL();
if (sp->handling == VCL_RET_DELIVER) {
vca_write_obj(w, sp);
HSH_Deref(sp->obj);
sp->obj = NULL;
sp->step = STP_DONE;
return;
}
INCOMPL();
}
......
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