[master] b6765cc4b We know the length of cached req.body. so chunked never happens.

Poul-Henning Kamp phk at FreeBSD.org
Fri Feb 21 05:22:09 UTC 2020


commit b6765cc4bfe66d1038da063e4ee667c21c623ed9
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Fri Feb 21 05:15:53 2020 +0000

    We know the length of cached req.body. so chunked never happens.

diff --git a/bin/varnishd/http1/cache_http1_fetch.c b/bin/varnishd/http1/cache_http1_fetch.c
index 64547f8e3..075a412d6 100644
--- a/bin/varnishd/http1/cache_http1_fetch.c
+++ b/bin/varnishd/http1/cache_http1_fetch.c
@@ -108,12 +108,9 @@ V1F_SendReq(struct worker *wrk, struct busyobj *bo, uint64_t *ctr_hdrbytes,
 
 	if (bo->bereq_body != NULL) {
 		AZ(bo->req);
-		if (do_chunked)
-			V1L_Chunked(wrk);
+		AZ(do_chunked);
 		(void)ObjIterate(bo->wrk, bo->bereq_body,
 		    bo, vbf_iter_req_body, 0);
-		if (do_chunked)
-			V1L_EndChunk(wrk);
 	} else if (bo->req != NULL &&
 	    bo->req->req_body_status != REQ_BODY_NONE) {
 		if (do_chunked)


More information about the varnish-commit mailing list