]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: mux-h1: don't report a 408 error on timeout of a closed connection
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 7 Oct 2026 09:29:35 +0000 (11:29 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 16 Oct 2026 17:10:27 +0000 (19:10 +0200)
commitad08f80596717c76da651346cf740834da38b313
tree2fd9bf2b3d5e5da45be7ee9502b035ffd3979c19
parent67458a2f7543b124b8c0bf8e70cd130963d73e54
BUG/MINOR: mux-h1: don't report a 408 error on timeout of a closed connection

When a frontend connection times out, the mux H1 tries to send a 408 error
to the client unless the connection is in the CLOSING state. But a
connection may also be in the CLOSED state, waiting the client closes on its
side. In that case too, no 408 must be emitted. Because of this issue, the
failed requests counters are incremented, a "408 <BADREQ>" log line is
emitted while it should not.

Now the error is only sent if the connection is still alive.

It should be backported as far as 2.8.
src/mux_h1.c