diff --git a/include/haproxy/xprt_quic.h b/include/haproxy/xprt_quic.h index 967a43d8d..ce65e8bf8 100644 --- a/include/haproxy/xprt_quic.h +++ b/include/haproxy/xprt_quic.h @@ -1149,6 +1149,9 @@ static inline void quic_rx_pkts_del(struct quic_conn *qc) LIST_DELETE(&pkt->qc_rx_pkt_list); pool_free(pool_head_quic_rx_packet, pkt); } + + /* In frequent cases the buffer will be emptied at this stage. */ + b_realign_if_empty(&qc->rx.buf); } /* Increment the reference counter of */