]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: quic: quic_cc_conn ->cntrs counters unreachable
authorFrédéric Lécaille <flecaille@haproxy.com>
Tue, 12 Sep 2023 09:51:57 +0000 (11:51 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 12 Sep 2023 16:13:36 +0000 (18:13 +0200)
commit84757e32e6b8f46460dabefa7fa7bb7daae15680
tree30c7ef57a5e1ec15797db2c5324948b5b06de5bb
parentefc46dede926f7a807ff059fad7cc4a874889486
BUG/MEDIUM: quic: quic_cc_conn ->cntrs counters unreachable

This bug arrived with this commit in 2.9-dev3:

    MEDIUM: quic: Allow the quic_conn memory to be asap released.

When sending packets from quic_cc_conn_io_cb(), e.g. when the quic_conn
object has been released and replaced by a lighter one (quic_cc_conn),
some counters may have to be incremented. But they were not reachable
because not shared between quic_conn and quic_cc_conn struct.

To fix this, one has only to move the ->cntrs counters from quic_conn
to QUIC_CONN_COMMON struct which is shared between both quic_cc_conn

Thank you to Tristan for having reported this in GH #2247.

No need to backport.
include/haproxy/quic_conn-t.h