]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: ignore uni-stream for initial max data TP
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 20 Mar 2025 15:18:13 +0000 (16:18 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 25 Mar 2025 15:29:38 +0000 (16:29 +0100)
commit1f1a18e318c276dd6e779f227d83709cb8e0664d
tree23bf1218fd5aa46705189757cfe0c227067ad81e
parent3db53202890b825a19ef9879a947d184b49003f2
MINOR: quic: ignore uni-stream for initial max data TP

Initial TP value for max-data is automatically calculated to be adjusted
to the maximum number of opened streams over a QUIC connection. This
took into account both max-streams-bidi-remote and uni-streams. By
default, this is equivalent to 100 + 3 = 103 max opened streams.

This patch simplifies the calculation by only using bidirectional
streams. Uni streams are ignored because they are only used for HTTP/3
control exchanges, which should only represents a few bytes. For now,
users can only configure the max number of remote bidi streams, so the
simplified calculation should make more sense to them.

Note that this relies on the assumption that HTTP/3 is used as
application protocol. To support other protocols, it may be necessary to
review this and take into account both local bidi and uni streams.
src/quic_tp.c