]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: mux-quic: handle properly Tx buf exhaustion
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 15 May 2023 11:56:46 +0000 (13:56 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 15 May 2023 12:06:21 +0000 (14:06 +0200)
commit1611a7659b25a9bdc226790b4acb185eb3de2414
tree98a7d2cbffa8cbeb146bc1ac8159e2525c4352f5
parent6e0c39d7ac3282bc255f742da36402434af0db77
BUG/MINOR: mux-quic: handle properly Tx buf exhaustion

Since the following patch
  commit 6c501ed23bea953518059117e7dd19e8d6cb6bd8
  BUG/MINOR: mux-quic: differentiate failure on qc_stream_desc alloc
it is not possible to check if Tx buf allocation failed due to a
configured limit exhaustion or a simple memory failure.

This patch fixes it as the condition was inverted. Indeed, if buf_avail
is null, this means that the limit has been reached. On the contrary
case, this is a real memory alloc failure. This caused the flag
QC_CF_CONN_FULL to not be properly used and may have caused disruption
on transfer with several streams or large data.

This was detected due to an abnormal error QUIC MUX traces. Also change
in consequence trace for limit exhaustion to be more explicit.

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