[master] ab38b9b Fix a brain-o uncovered by running our test-cases thousands of times over the weekend:

Poul-Henning Kamp phk at FreeBSD.org
Mon May 18 09:31:10 CEST 2015


commit ab38b9b02a997a8e3fac02d19e009fb1c37cc0d2
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon May 18 07:30:10 2015 +0000

    Fix a brain-o uncovered by running our test-cases thousands of times
    over the weekend:
    
    Just because we have a bo doesn't mean we have a bo->beresp any more,
    find the C-L header in the req->resp.

diff --git a/bin/varnishd/cache/cache_req_fsm.c b/bin/varnishd/cache/cache_req_fsm.c
index 1f0e306..653a0cd 100644
--- a/bin/varnishd/cache/cache_req_fsm.c
+++ b/bin/varnishd/cache/cache_req_fsm.c
@@ -54,7 +54,7 @@ cnt_vdp(struct req *req, struct busyobj *bo)
 
 	req->res_mode = 0;
 	if (bo != NULL)
-		req->resp_len = http_GetContentLength(bo->beresp);
+		req->resp_len = http_GetContentLength(req->resp);
 	else
 		req->resp_len = ObjGetLen(req->wrk, req->objcore);
 



More information about the varnish-commit mailing list