[master] fb58772 Tag the request with the transport up front

Poul-Henning Kamp phk at FreeBSD.org
Tue Aug 30 11:42:11 CEST 2016


commit fb58772dde17ce0a3fc0f1b8059ccf3a39c070ca
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Aug 30 09:01:31 2016 +0000

    Tag the request with the transport up front

diff --git a/bin/varnishd/cache/cache_session.c b/bin/varnishd/cache/cache_session.c
index 6c0e45f..2eeec0a 100644
--- a/bin/varnishd/cache/cache_session.c
+++ b/bin/varnishd/cache/cache_session.c
@@ -62,6 +62,7 @@ SES_SetTransport(struct worker *wrk, struct sess *sp, struct req *req,
 	assert(xp->number > 0);
 
 	sp->sattr[SA_TRANSPORT] = xp->number;
+	req->transport = xp;
 	wrk->task.func = xp->new_session;
 	wrk->task.priv = req;
 }



More information about the varnish-commit mailing list