]> git.kaiwu.me - haproxy.git/commit
MINOR: mux-h2: store the concurrent streams hard limit in the h2c
authorWilly Tarreau <w@1wt.eu>
Thu, 19 Mar 2026 07:16:30 +0000 (08:16 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 19 Mar 2026 15:24:31 +0000 (16:24 +0100)
commitb63492e4f4daabdf76c781df65672fa581ff7b27
tree8ea1a1dbae69a67836aa241e32493abefa15dee6
parentb3a84800b4f8246d5c9af62a3a8e2d6d0f6cc76f
MINOR: mux-h2: store the concurrent streams hard limit in the h2c

The hard limit on the number of concurrent streams is currently
determined only by configuration and returned by
h2c_max_concurrent_streams(). However this doesn't permit to
change such settings on the fly without risking to break connections,
and it doesn't allow a connection to pick a different value, which
could be desirable for example to try to slow abuse down.

Let's store a copy of h2c_max_concurrent_streams() at connection
creation time into the h2c as streams_hard_limit. This inflates
the h2c size from 1324 to 1328 (0.3%) which is acceptable for the
expected benefits.
src/mux_h2.c