]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http_ana: Report -1 for %Tr for invalid response only
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 18 Nov 2024 21:37:52 +0000 (22:37 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 19 Nov 2024 14:29:40 +0000 (15:29 +0100)
commit5863d33fce702c46b77c07d4ea82e036b11417a6
tree65b3d1b830dbfdbac6582f87bf14bfef89fd923e
parentbc967758a21a2aa872109a1b24cb94887eb0629f
BUG/MINOR: http_ana: Report -1 for %Tr for invalid response only

The server response time is erroneously reported as -1 when it is
intercepted by HAProxy.

As stated in the documentation, the server response time is reported as -1
when the last response header was never seen. It happens when a server
timeout is triggered before the server managed to process the request. It
also happens if the response is invalid. This may be reported by the mux
during the response parsing, but also by the HTTP analyzers. However, in
this last case, the response time must only be reported as -1 on 502.

This patch must be backported to all stable versions. It should fix the
issue #2384.
src/http_ana.c