]> git.kaiwu.me - haproxy.git/commit
MINOR: tcp-sample: permit retrieving tcp_info from the connection/session stage
authorWilly Tarreau <w@1wt.eu>
Sun, 11 Jan 2026 14:19:18 +0000 (15:19 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 11 Jan 2026 14:48:20 +0000 (15:48 +0100)
commit2560cce7c5d7a2f3859173886c3b139dc67eff0b
tree13a5053b14b190ea0f571ee29b499c21becfde26
parent880bbeeda4b70deee430743dd16d3171e7d319b5
MINOR: tcp-sample: permit retrieving tcp_info from the connection/session stage

The fc_xxx info that are retrieved over tcp_info could currently not
be accessed before a stream is created due to a test that verified the
existence of a stream. The rationale here was that the function works
both for frontend and backend. Let's always retrieve these info from
the session for the frontend case so that it now becomes possible to
set variables at connection/session time. The doc did not mention this
limitation so this could almost be considered as a bug.
src/tcp_sample.c