[master] 2b9d23d We have a number of weird session error cases that still fail out here and need a SLT_End record.

Poul-Henning Kamp phk at FreeBSD.org
Wed Jul 23 16:08:30 CEST 2014


commit 2b9d23d586777d3f38df45d54ba6a5614ac4cce5
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Jul 23 14:07:59 2014 +0000

    We have a number of weird session error cases that still fail
    out here and need a SLT_End record.

diff --git a/bin/varnishd/cache/cache_session.c b/bin/varnishd/cache/cache_session.c
index 2aaf632..3b22ce7 100644
--- a/bin/varnishd/cache/cache_session.c
+++ b/bin/varnishd/cache/cache_session.c
@@ -398,7 +398,8 @@ SES_ReleaseReq(struct req *req)
 #undef ACCT
 
 	AZ(req->vcl);
-	AZ(req->vsl->wid);
+	if (req->vsl->wid)
+		VSL_End(req->vsl);
 	sp = req->sp;
 	CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
 	pp = sp->sesspool;



More information about the varnish-commit mailing list