mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-08 09:33:33 +02:00
BUG/MINOR: mux-quic: Fix memleak on QUIC stream buffer for unacknowledged data
Some clients send CONNECTION_CLOSE frame without acknowledging the STREAM data haproxy has sent. In this case, when closing the connection if there were remaining data in QUIC stream buffers, they were not released. Add a <closing> boolean option to qc_stream_desc_free() to force the stream buffer memory releasing upon closing connection. Thank you to Tristan for having reported such a memory leak issue in GH #1801. Must be backported to 2.6.
This commit is contained in:
@@ -12,7 +12,7 @@ struct qc_stream_desc *qc_stream_desc_new(uint64_t id, enum qcs_type, void *ctx,
|
||||
struct quic_conn *qc);
|
||||
void qc_stream_desc_release(struct qc_stream_desc *stream);
|
||||
int qc_stream_desc_ack(struct qc_stream_desc **stream, size_t offset, size_t len);
|
||||
void qc_stream_desc_free(struct qc_stream_desc *stream);
|
||||
void qc_stream_desc_free(struct qc_stream_desc *stream, int closing);
|
||||
|
||||
struct buffer *qc_stream_buf_get(struct qc_stream_desc *stream);
|
||||
struct buffer *qc_stream_buf_alloc(struct qc_stream_desc *stream,
|
||||
|
||||
Reference in New Issue
Block a user