[5.2] 9b9f981 Close the VFPs on error

PÃ¥l Hermunn Johansen hermunn at varnish-software.com
Fri Sep 15 11:17:20 UTC 2017


commit 9b9f98155814a741505f7886cf6c24c1133c89a0
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