DOC: config: Update documentation about local haproxy response
Documentation about 'L' state in the termination state was outdated. Today,
not only the request may be intercepted, but also the response.
Documentation about 'L' must be more generic.
However, documentation about possible 2-letter termination states was also
extended to add 'LC' and 'LH' in the list. And 'LR' was adapted too.
This patch should fix the issue #2384. It may be backported to every stable
versions. Note that on 2.8 and lowers, we talk about session and not stream.
(cherry picked from commit 0a203c1d3f359396e66679991f5c84460fae80e2)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit 3cb61a4a8286e44907ebe818ffd50d611d827b21)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 9183dfd6ecb1bffe4598ac1e90f928436ea3ae10)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 08f8e8cda78db602fae2bb95807bc42eef221c3f)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 54d058860c8b47fcb90da9bbf21598e8d8523069)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
diff --git a/doc/configuration.txt b/doc/configuration.txt
index 886e7c6..b4666f7 100644
--- a/doc/configuration.txt
+++ b/doc/configuration.txt
@@ -21180,8 +21180,7 @@
error in server response which might have caused information leak
(e.g. cacheable cookie).
- L : the session was locally processed by HAProxy and was not passed to
- a server. This is what happens for stats and redirects.
+ L : the session was locally processed by HAProxy.
R : a resource on the proxy has been exhausted (memory, sockets, source
ports, ...). Usually, this appears during the connection phase, and
@@ -21379,8 +21378,18 @@
closer to the average reported "Tw" timer, in order not to consume
resources for just a few attackers.
- LR The request was intercepted and locally handled by HAProxy. Generally
- it means that this was a redirect or a stats request.
+ LC The request was intercepted and locally handled by HAProxy. The
+ request was not sent to the server. It only happens with a redirect
+ because of a "redir" parameter on the server line.
+
+ LR The request was intercepted and locally handled by HAProxy. The
+ request was not sent to the server. Generally it means a redirect was
+ returned, an HTTP return statement was processed or the request was
+ handled by an applet (stats, cache, Prometheus exported, lua applet...).
+
+ LH The response was intercepted and locally handled by HAProxy. Generally
+ it means a redirect was returned or an HTTP return statement was
+ processed.
SC The server or an equipment between it and HAProxy explicitly refused
the TCP connection (the proxy received a TCP RST or an ICMP message