]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: mux_quic: limit avail_streams() to 2^62
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 15 Apr 2026 14:32:48 +0000 (16:32 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 17 Apr 2026 09:36:01 +0000 (11:36 +0200)
commit143d0034c912f1490812b6302f0dffb37f3ec02d
tree5b27cbc318f64cafe537aa4d474fb537baa1dea1
parent4945d02c99f0547b3783a3d1c792db6a535c56a2
BUG/MINOR: mux_quic: limit avail_streams() to 2^62

QUIC streams ID are encoded as 62-bit integer and cannot reuse an ID
within a connection. This is necessary to take into account this
limitation for backend connections.

This patch implements this via qmux_avail_streams() callback. In the
case where the connection is approaching the encoding limit, reduce the
advertised value until the limit is reached. Note that this is very
unlikely to happen as the value is pretty high.

This should be backported up to 3.3.
include/haproxy/mux_quic.h
src/mux_quic.c