]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: handle Tx packet allocation failure properly
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 19 Apr 2023 13:56:30 +0000 (15:56 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 22 May 2023 12:18:02 +0000 (14:18 +0200)
commit7385ff3f0ca1c0c385708c52d3dd5939d3a47188
treefa90a49c5324d5cd926e58a790c3c98a0df96dec
parentf8fbb0b94e1f5728b88cf99166ee72d827dc378e
BUG/MINOR: quic: handle Tx packet allocation failure properly

qc_prep_app_pkts() is responsible to built several new packets for
sending. It can fail due to memory allocation error. Before this patch,
the Tx buffer was released on error even if some packets were properly
generated.

With this patch, if an error happens on qc_prep_app_pkts(), we still try
to send already built packets if Tx buffer is not empty. The sending
loop is then interrupted and the Tx buffer is released with data
cleared.

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