]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-quic: do not send STREAM frames if already subscribe
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 3 May 2023 07:50:39 +0000 (09:50 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 11 May 2023 12:04:51 +0000 (14:04 +0200)
commit04b2208aa0768bb7f69dc4a286e7e059409bdf09
tree0125c477c9d431c997bb91cde10479a260a306ed
parent2d5c3f5cd1d33d87dba6921739b62bd08ad5aecb
MINOR: mux-quic: do not send STREAM frames if already subscribe

Do not built STREAM frames if MUX is already subscribed for sending on
lower layer. Indeed, this means that either socket currently encountered
a transient error or congestion window is full.

This change is an optimization which prevents to allocate and release a
series of STREAM frames for nothing under congestion.

Note that nothing is done for other frames (flow-control, RESET_STREAM
and STOP_SENDING). Indeed, these frames are not restricted by flow
control. However, this means that they will be allocated for nothing if
send is blocked on a transient error.

This should be backported up to 2.7.
src/mux_quic.c