]> git.kaiwu.me - haproxy.git/commit
REGTESTS: quic: undecryptable 0-RTT packets must not exhaust the Rx buffer master
authorFrederic Lecaille <flecaille@haproxy.com>
Wed, 18 Nov 2026 16:47:39 +0000 (17:47 +0100)
committerFrederic Lecaille <flecaille@haproxy.com>
Wed, 18 Nov 2026 17:00:24 +0000 (18:00 +0100)
commit70e00e369e8910f8a3aa9522e1fdfdf544e60f21
tree16e8e654a4c1b522d156c7380b58a1d1dfe07dd3
parent9236b332d009622010f53fd151a79feabd7c848f
REGTESTS: quic: undecryptable 0-RTT packets must not exhaust the Rx buffer

On a listener with "allow-0rtt", a 0-RTT packet whose header protection
cannot be removed is queued in the 0-RTT encryption level pqpkts list, with
a reference on the connection Rx buffer. That buffer is reclaimed in order
and stops at the first referenced packet, so a queued 0-RTT packet pins all
the data behind it. When no 0-RTT RX secret exists, because the early data
were rejected by the TLS stack or because the TLS library does not support
0-RTT, those packets can never be decrypted and are never released: past
about 64 kB, every packet of the connection is dropped until the idle
timeout.

The test completes a handshake, keeps the connection healthy with an HTTP/3
request, then injects 120 long header 0-RTT packets whose payload is
encrypted with keys haproxy does not know, which reproduces the state
reached when 0-RTT keys are absent. Dropped packets are counted as
dropped_pkt_bufoverrun, shown as dropbuff= by "show quic full", so the vtc
asserts through the CLI that this field does not appear: the Rx buffer was
not exhausted and the connection was not stalled.

It needs the Python client in reg-tests/quic/qclient, so it carries
'#REGTEST_EXTRA=qclient' and only runs when requested.

Covers 2335f9196.
reg-tests/quic/0rtt_undecryptable.py [new file with mode: 0755]
reg-tests/quic/0rtt_undecryptable.vtc [new file with mode: 0644]