]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: sample: Fix sample to retrieve the number of bytes received and sent
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 5 Mar 2026 08:58:59 +0000 (09:58 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 5 Mar 2026 14:34:47 +0000 (15:34 +0100)
commit47915010115b9524f1392a18dd19c290a9d48217
treef13643bdd8859fa281f3441e7f5594bc79ae6603
parente0728ebcf48dbc4d1ea4ce4536cbc787aed4e644
BUG/MINOR: sample: Fix sample to retrieve the number of bytes received and sent

There was an issue in the if/else statement in smp_fetch_bytes() function.
When req.bytes_in or req.bytes_out was requested, res.bytes_in was always
returned. It is now fixed.

This patch must be backported to 3.3.
src/sample.c