[Varnish] #1613: keep-alive is enabled even if req.http.Connection is set to "close"

Varnish varnish-bugs at varnish-cache.org
Tue Oct 28 12:57:16 CET 2014


#1613: keep-alive is enabled even if req.http.Connection is set to "close"
----------------------+--------------------
 Reporter:  zviratko  |       Owner:
     Type:  defect    |      Status:  new
 Priority:  normal    |   Milestone:
Component:  varnishd  |     Version:  4.0.1
 Severity:  normal    |  Resolution:
 Keywords:            |
----------------------+--------------------

Comment (by daghf):

 This was discussed during yesterdays bugwash meeting, and the consensus is
 that the way to do this in Varnish is to set Connection: close in the
 response.

 Relating to this, there is a bug in that {{{sub vcl_deliver { set
 resp.http.Connection = "close"; } }}} currently leaves us with two
 Connection headers in the response (both "close" and "keep-alive"), which
 might confuse a few clients.

 I've attached a test case that demonstrates this behavior.

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1613#comment:1>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator



More information about the varnish-bugs mailing list