]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: Unexpected half open connection counter wrapping
authorFrédéric Lécaille <flecaille@haproxy.com>
Fri, 17 Jun 2022 13:11:32 +0000 (15:11 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 20 Jun 2022 12:57:09 +0000 (14:57 +0200)
commit2aebaa49b11c44fbbc4f059bb24695ebf13e0537
treea75a290310e8bb9e2d1563104ab59bb5bdc1362c
parentb1cb95858112880adcaa3aa0e2e6809a537a71c8
BUG/MINOR: quic: Unexpected half open connection counter wrapping

This counter must be incremented only one time by connection and decremented
as soon as the handshake has failed or succeeded. This is a gauge. Under certain
conditions this counter could be decremented twice. For instance
after having received a TLS alert, then upon SSL_do_handshake() failure.
To stop having to deal to all the current combinations which can lead to such a
situation (and the next to come), add a connection flag to denote if this counter
has been already decremented for a connection. So, this counter must be decremented
only if this flag has not been already set.

Must be backported up to 2.6.
include/haproxy/xprt_quic-t.h
src/xprt_quic.c