Commit ba78ebeb authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

doc: Mention the effect of Connection:close in beresp

parent 5b21cb88
......@@ -38,6 +38,25 @@ 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";
}
}
}
**XXX new, deprecated or removed variables, or changed semantics**
Other changes to VCL
......
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