Commit 03b60ae2 authored by Nils Goroll's avatar Nils Goroll

for fetch failure, close all vdps, not just pesi

parent 2b834548
......@@ -2559,7 +2559,7 @@ vped_deliver(struct req *req, struct boc *boc, int wantbody)
if (req->objcore->flags & OC_F_FAILED) {
/* No way of signalling errors in the middle of
the ESI body. Omit this ESI fragment. */
goto clean; // XXX
goto close; // XXX
}
}
......@@ -2570,6 +2570,8 @@ vped_deliver(struct req *req, struct boc *boc, int wantbody)
AZ(VDP_Push(req, &vped_to_parent, parent->req));
(void)VDP_DeliverObj(req);
/* pesi_buf does not pesi_destroy() on fini */
req->transport_priv = NULL;
pesi_destroy(&pesi);
goto noesi; // XXX
......@@ -2678,7 +2680,6 @@ vped_deliver(struct req *req, struct boc *boc, int wantbody)
*
* XXX cleanup
*/
clean:
vped_close_vdp(req, 0, &VDP_pesi);
noesi:
vped_close_vdp(req, 0, &VDP_pesi_buf);
......
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