[master] 8bdfb793f Zero out the "len_so_far" when we abandon a fetch object

Poul-Henning Kamp phk at FreeBSD.org
Tue Aug 18 10:38:07 UTC 2020


commit 8bdfb793fe6fb1fe2764a465cdd5ff04f60387fb
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Aug 18 10:37:34 2020 +0000

    Zero out the "len_so_far" when we abandon a fetch object

diff --git a/bin/varnishd/cache/cache_fetch.c b/bin/varnishd/cache/cache_fetch.c
index c28f1ebeb..ce603e509 100644
--- a/bin/varnishd/cache/cache_fetch.c
+++ b/bin/varnishd/cache/cache_fetch.c
@@ -833,8 +833,10 @@ vbf_stp_error(struct worker *wrk, struct busyobj *bo)
 	now = W_TIM_real(wrk);
 	VSLb_ts_busyobj(bo, "Error", now);
 
-	if (oc->stobj->stevedore != NULL)
+	if (oc->stobj->stevedore != NULL) {
+		oc->boc->len_so_far = 0;
 		ObjFreeObj(bo->wrk, oc);
+	}
 
 	if (bo->storage == NULL)
 		bo->storage = STV_next();


More information about the varnish-commit mailing list