]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: h2: make tune.h2.log-errors actually work
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 22 Apr 2026 16:21:05 +0000 (18:21 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 23 Apr 2026 06:04:43 +0000 (08:04 +0200)
commit915a58c3c1f1967e52867f87a018d5cc0fabe8de
tree1469c651c96f89a00fdd68d5c0e7e0ef581d01bd
parentdbf471f99a3ac7d8446da2b9ddf5cfcee77fddde
BUG/MINOR: h2: make tune.h2.log-errors actually work

Commit e67e36c9eb35eb1477ae0e425a660ee0c631cecd introduced
tune.h2.log-errors, that would let you pick if you wanted to know about
stream errors, connection errors, or no error.
However, a logic error made it so no error will be picked for any value
except for "none", in which case connection would be picked. Fix that by
just checking the strcmp() return value correctly.

This should be backported wherever e67e36c9eb35eb1477ae0e425a660ee0c631cecd
has been backported.
src/mux_h2.c