Commit 4297c891 authored by Steven's avatar Steven Committed by Reza Naghibi

doc: Mention the effect of Connection:close in beresp

Original author: @dridi

This commit is from ba78ebeb but
with no analogous file in 6.0, it is added to changes-6.0.rst instead of changes-trunk.rst
parent bb73128a
......@@ -50,6 +50,31 @@ this should make life simpler for everybody we hope.
And it goes without saying that we have fixed a lot of bugs too.
Changes to VCL
==============
VCL variables
~~~~~~~~~~~~~
It is now possible to manually set a ``Connection: close`` header in
``beresp`` to signal that the backend connection shouldn't be recycled.
This might help dealing with backends that would under certain circumstances
have trouble managing their end of the connection, for example for certain
kinds of resources.
Care should be taken to preserve other headers listed in the connection
header::
sub vcl_backend_response {
if (beresp.backend == faulty_backend) {
if (beresp.http.Connection) {
set beresp.http.Connection += ", close";
} else {
set beresp.http.Connection = "close";
}
}
}
Under the hood (mostly for developers)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment