From 3081646df240b41f6b302452a1c5f626a0a9f9ca Mon Sep 17 00:00:00 2001 From: Ruben Herold Date: Tue, 6 Oct 2026 11:18:10 +0200 Subject: haproxy: document backend http-server-close --- docs/configuration/loadbalancing/haproxy.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'docs') diff --git a/docs/configuration/loadbalancing/haproxy.md b/docs/configuration/loadbalancing/haproxy.md index d60c5248..bdbcf591 100644 --- a/docs/configuration/loadbalancing/haproxy.md +++ b/docs/configuration/loadbalancing/haproxy.md @@ -145,6 +145,19 @@ Balance algorithms: Configure backend ** mode TCP or HTTP. ``` +```{cfgcmd} set load-balancing haproxy backend \ http-server-close + +Close the connection to the backend servers after each response, while +keeping HTTP keep-alive and pipelining on the client side. This gives the +lowest latency for clients on slow networks and reuses server resources +quickly. + +Some servers do not handle the `Connection: close` request header correctly. +Keep-alive is then never used for them. + +The backend must be in `http` mode, otherwise the commit fails. +``` + ```{cfgcmd} set load-balancing haproxy backend \ server \ address \ Set the address of the backend server that receives incoming traffic. -- cgit v1.2.3