]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: mux_quic: fix ALPN retrieval from server
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 27 Oct 2026 14:11:34 +0000 (15:11 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 28 Oct 2026 10:06:00 +0000 (11:06 +0100)
commit2cf6bbff69cea9af250a27ad8e866f0825befe94
tree3e5385c6d21f8430ab35068863ed3fd04f88bae3
parent9b867288146c406fe96ecbee4d4d7077568a11d4
BUG/MINOR: mux_quic: fix ALPN retrieval from server

On backend side, ALPN may be retrieved from the server when 0-RTT is
used. This requires the server lock to protect concurrent modification
of the server access.

This code was badly written as server ALPN was still accessed outside of
the lock. Fix this by copying the server ALPN in a local string before
releasing the lock.

This also fixes the detection of an empty server ALPN to avoid an
unnecessary call to quic_alpn_to_app_ops().

This must be backported up to 3.4.
src/mux_quic.c