]> git.kaiwu.me - haproxy.git/commit
CLEANUP: quic: remove the unused tx part of struct quic_cstream
authorFrederic Lecaille <flecaille@haproxy.com>
Thu, 29 Oct 2026 13:14:16 +0000 (14:14 +0100)
committerFrederic Lecaille <flecaille@haproxy.com>
Tue, 3 Nov 2026 06:56:46 +0000 (07:56 +0100)
commite445b1ab036ae923f1623355fbe31366512a6715
tree9c2f506a5ee9566484a1a94b95c64ba39828715c
parent213e2b400fed5a70aedf36da7539a8478b87f1b5
CLEANUP: quic: remove the unused tx part of struct quic_cstream

struct quic_cstream carries a tx substructure with offset, sent_offset
and buf members, inherited from the qcs object it was derived from to
handle CRYPTO streams. Nothing ever reads them: the TX side of the
CRYPTO stream is handled by the tx crypto buffers of its encryption
level for the data, and by the stream descriptor attached to the
cstream. Only quic_cstream_new() sets the three members and no reader
exists anywhere in src/ or include/.

They were already unread when they were introduced (commit 7e3f7c47e
"MINOR: quic: New quic_cstream object implementation"), so let's remove
them along with their initialization.
include/haproxy/quic_tls-t.h
src/quic_tls.c