[master] 5d383b0 size req->vsl using the proper parameter.

Poul-Henning Kamp phk at varnish-cache.org
Tue Oct 29 14:27:27 CET 2013


commit 5d383b0ba48b816a106bc96ec62cd4656c496f0c
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Oct 29 13:27:13 2013 +0000

    size req->vsl using the proper parameter.

diff --git a/bin/varnishd/cache/cache_session.c b/bin/varnishd/cache/cache_session.c
index 4006ea3..886b3de 100644
--- a/bin/varnishd/cache/cache_session.c
+++ b/bin/varnishd/cache/cache_session.c
@@ -401,7 +401,7 @@ SES_GetReq(struct worker *wrk, struct sess *sp)
 	p = (void*)PRNDUP(p);
 	assert(p < e);
 
-	sz = cache_param->workspace_thread;
+	sz = cache_param->vsl_buffer;
 	VSL_Setup(req->vsl, p, sz);
 	req->vsl->wid = VXID_Get(&wrk->vxid_pool) | VSL_CLIENTMARKER;
 	VSLb(req->vsl, SLT_Begin, "req %u", sp->vxid & VSL_IDENTMASK);



More information about the varnish-commit mailing list