BUG/MINOR: mux-quic: do not send too big MAX_STREAMS ID

QUIC stream IDs are expressed as QUIC variable integer which cover the
range for 0 to 2^62 - 1. As such, it is forbidden to send an ID for
MAX_STREAMS flow-control frame which would allow to overcome this value.

This patch fixes MAX_STREAMS emission to ensure sent value is valid.
This also ensures that the peer cannot open a stream with an invalid ID
as this would cause a flow-control violation instead.

This must be backported up to 2.6.

(cherry picked from commit f3c75a52df29247e5d502344127d42efb2c12b82)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit cf920ac69b67eef6e714ac7ebc7e9ddc55554e52)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit e1b921ede8714aa4385961d0f70a8114268a2773)
Signed-off-by: Willy Tarreau <w@1wt.eu>
1 file changed