]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: mux_quic: fix MAX_STREAMS limit
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 22 Oct 2026 12:22:32 +0000 (14:22 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 22 Oct 2026 13:09:56 +0000 (15:09 +0200)
commit26eeba56821dab9a8a6957620993fd7a92bcb4b5
treeb0c27655d4966a610cd612c057e37e5b62c97854
parent3eeec1481fff3bfb1d15a8db30988704af1467b6
BUG/MINOR: mux_quic: fix MAX_STREAMS limit

A peer may emit a MAX_STREAMS frame to increase the window of opened
streams. Such frame is parsed via qcc_recv_max_streams() since 3.3 as it
is mandatory for backend support.

This patch fixes the maximum value authorized in MAX_STREAMS. As
specified by RFC 9000, it cannot exceed 2^60, the maximum number of
streams of a given type, as stream IDs are encoded on 62 bits with the 2
least significant bits reserved for the type.

This must be backported up to 3.3.
src/mux_quic.c