]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-h1: Increment open_streams counter when H1 stream is created
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 12 Sep 2022 05:46:11 +0000 (07:46 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 12 Sep 2022 07:54:11 +0000 (09:54 +0200)
commitaf5336fd238ad2dcac8c09c45720152e36be7bb9
tree1aed09407ea074dc5f351312a8c4e7b2e3111673
parentaf985e0151c7d12d9dac4fc364b5c50d3db1e1db
BUG/MINOR: mux-h1: Increment open_streams counter when H1 stream is created

Since this counter was added, it was incremented at the wrong place for
client streams. It was incremented when the stream-connector (formely the
conn-stream) was created while it should be done when the H1 stream is
created. Thus, on parsing error, on H1>H2 upgrades or TCP>H1 upgrades, the
counter is not incremented. However, it is always decremented when the H1
stream is destroyed.

On bakcned side, there is no issue.

This patch must be backported to 2.6.
src/mux_h1.c