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

Move the pass-abandon up where it belongs.

parent 0290623e
...@@ -209,6 +209,10 @@ cnt_deliver(struct worker *wrk, struct req *req) ...@@ -209,6 +209,10 @@ cnt_deliver(struct worker *wrk, struct req *req)
cnt_vdp(req, bo == NULL ? NULL : bo->boc); cnt_vdp(req, bo == NULL ? NULL : bo->boc);
/* pass+streaming, abandon fetch in case delivery terminated early */
if (bo != NULL && req->objcore->flags & OC_F_PASS)
bo->abandon = 1;
VSLb_ts_req(req, "Resp", W_TIM_real(wrk)); VSLb_ts_req(req, "Resp", W_TIM_real(wrk));
if (http_HdrIs(req->resp, H_Connection, "close")) if (http_HdrIs(req->resp, H_Connection, "close"))
......
...@@ -307,8 +307,6 @@ sml_iterator(struct worker *wrk, struct objcore *oc, ...@@ -307,8 +307,6 @@ sml_iterator(struct worker *wrk, struct objcore *oc,
break; break;
} }
} }
if (oc->flags & OC_F_PASS)
bo->abandon = 1;
VBO_DerefBusyObj(wrk, &bo); VBO_DerefBusyObj(wrk, &bo);
return (ret); return (ret);
} }
......
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