]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: h2: explain committed_extra_streams dec on h2_init() error
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 13 May 2026 06:02:09 +0000 (08:02 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 20 May 2026 07:52:50 +0000 (09:52 +0200)
commitad3562fea189c6473de3568b2bcd03587c4b5813
tree9b858cc5d20fed2e1b7a20c99f80876c665f2fb2
parent641fe4f119597e06a1152b16799a06e950e2f9f3
MINOR: h2: explain committed_extra_streams dec on h2_init() error

h2_init() is now responsible to increment committed_extra_streams for
new frontend connections, in relation to the newly implemented
stream-elasticity feature. In case of an early error, a mirroring
decrement is executed on fail_stream label.

However, for now this error label can only be selected via BE conns. In
fact, it's not yet possible for h2_init() to fail after the extra
streams increment.

However, the decrement operation is kept to prevent any omissions in
case of future evolutions of h2_init() error path. To prevent reporting
of a possible dead code, add an extra comment which summarizes the
situation.
src/mux_h2.c