]> git.kaiwu.me - haproxy.git/commit
REGTESTS: log: check that a log-forward TCP session ends on client close
authorYeonggi Kim <yg.kim@navercorp.com>
Tue, 6 Oct 2026 09:12:47 +0000 (18:12 +0900)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 9 Oct 2026 12:04:06 +0000 (14:04 +0200)
commitfcba844c55ebbab61a888472d5a162453e87679a
treeb9a5b46894f291f22c578046d4f66d3abf32d94d
parent362c87e39857ee24eb103f820690379d9b2f4dc2
REGTESTS: log: check that a log-forward TCP session ends on client close

This test covers the bug fixed by the previous commit:

    BUG/MEDIUM: log: do not ignore the peer's shutdown in the syslog applet

A log-forward section without "timeout client" accepts a single
connection at a time ("maxconn 1"). A first client sends a message and
only closes once the message was forwarded, so that its shutdown is
received alone, on an empty input buffer. A second client then sends
another message, which can only be forwarded once the first session is
gone. On an affected, unpatched build, the first session never ends and
the test fails on its timeout. It passes on 3.2, which is not affected.

This must be backported wherever the fix above is backported.
reg-tests/log/log_forward_tcp_close.vtc [new file with mode: 0644]