[master] 880c3c2 Set Connection: close before calling vcl_pipe

Tollef Fog Heen tfheen at err.no
Tue Mar 18 12:53:55 CET 2014


commit 880c3c2a564aeeaad508dab136611973ca71d6aa
Author: Tollef Fog Heen <tfheen at fastly.com>
Date:   Tue Mar 18 12:43:54 2014 +0100

    Set Connection: close before calling vcl_pipe
    
    It makes sense to default to setting Connection: close for vcl_pipe.
    Do this before calling vcl_pipe so it's overrideable.
    
    Fixes #1455

diff --git a/bin/varnishd/cache/cache_req_fsm.c b/bin/varnishd/cache/cache_req_fsm.c
index 5df16e6..f43416f 100644
--- a/bin/varnishd/cache/cache_req_fsm.c
+++ b/bin/varnishd/cache/cache_req_fsm.c
@@ -579,6 +579,7 @@ cnt_pipe(struct worker *wrk, struct req *req)
 	http_FilterReq(bo->bereq, req->http, 0);	// XXX: 0 ?
 	http_PrintfHeader(bo->bereq,
 	    "X-Varnish: %u", req->vsl->wid & VSL_IDENTMASK);
+	http_SetHeader(bo->bereq, "Connection: close");
 
 	VCL_pipe_method(req->vcl, wrk, req, bo, req->http->ws);
 



More information about the varnish-commit mailing list