[master] ba5d98f Close the VFPs on error

Federico G. Schwindt fgsch at lodoss.net
Tue Sep 12 08:21:03 UTC 2017


commit ba5d98f4a9335d3aea7a08a475d2b65bd88f5941
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Tue Sep 12 00:12:13 2017 +0100

    Close the VFPs on error

diff --git a/bin/varnishd/cache/cache_fetch.c b/bin/varnishd/cache/cache_fetch.c
index fe3fdae..20b3596 100644
--- a/bin/varnishd/cache/cache_fetch.c
+++ b/bin/varnishd/cache/cache_fetch.c
@@ -544,6 +544,7 @@ vbf_stp_fetchbody(struct worker *wrk, struct busyobj *bo)
 	if (vfc->failed) {
 		(void)VFP_Error(vfc, "Fetch pipeline failed to process");
 		bo->htc->doclose = SC_RX_BODY;
+		VFP_Close(vfc);
 		VDI_Finish(wrk, bo);
 		if (!bo->do_stream) {
 			assert(bo->fetch_objcore->boc->state < BOS_STREAM);


More information about the varnish-commit mailing list