From: Frédéric Lécaille Date: Wed, 29 Jun 2022 09:24:35 +0000 (+0200) Subject: BUG/MINOR: quic: Dropped packets not counted (with RX buffers full) X-Git-Tag: v2.7-dev2~171 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=95a8dfb4c74658cb7e2e9be63007891931e530a8;p=thirdparty%2Fhaproxy.git BUG/MINOR: quic: Dropped packets not counted (with RX buffers full) When the connection RX buffer is full, the received packets are dropped. Some of them were not taken into an account by the ->dropped_pkt counter. This very simple patch has no impact at all on the packet handling workflow. Must be backported to 2.6. --- diff --git a/src/xprt_quic.c b/src/xprt_quic.c index e55507d630..0be3e64bd0 100644 --- a/src/xprt_quic.c +++ b/src/xprt_quic.c @@ -5575,7 +5575,7 @@ static void qc_lstnr_pkt_rcv(unsigned char *buf, const unsigned char *end, if (b_tail(&qc->rx.buf) + b_cspace < b_wrap(&qc->rx.buf)) { TRACE_PROTO("Packet dropped", QUIC_EV_CONN_LPKT, qc, NULL, NULL, qv); - goto err; + goto drop; } /* Let us consume the remaining contiguous space. */