]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: limit total stream buffers per connection
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 15 Apr 2022 15:30:49 +0000 (17:30 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 21 Apr 2022 10:04:04 +0000 (12:04 +0200)
commitd2f80a2e63a119341cb0ab316c05707251c2c15b
treefe968fd4cc5d9e15e6038573950704ff8e098f70
parent1b81dda3e06f8f04b1342346fedb5937e1e9e257
MINOR: quic: limit total stream buffers per connection

MUX streams can now allocate multiple buffers for sending. quic-conn is
responsible to limit the total count of allowed allocated buffers. A
counter is stored in the new field <stream_buf_count>.

For the moment, the value is hardcoded to 30.

On stream buffer allocation failure, the qcc MUX is flagged with
QC_CF_CONN_FULL. The MUX is then woken up as soon as a buffer is freed,
most notably on ACK reception.
include/haproxy/mux_quic-t.h
include/haproxy/quic_stream.h
include/haproxy/xprt_quic-t.h
src/mux_quic.c
src/quic_stream.c
src/xprt_quic.c