]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: backend: only start the mux early when 0-RTT may be used
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 26 Nov 2026 17:51:47 +0000 (18:51 +0100)
committerOlivier Houchard <cognet@ci0.org>
Fri, 27 Nov 2026 12:47:09 +0000 (13:47 +0100)
commit4810d943fe40dc995cfb7a1ea3d22591b8fdafb5
tree88d2934dca2349af6e96b53392284b5e4b91ed81
parentb0d3ef63102b2273246daf47fa0cdee8afd7131c
BUG/MEDIUM: backend: only start the mux early when 0-RTT may be used

Since commit d4c51a4f5 ("MEDIUM: server: Make use of the stored ALPN
stored in the server"), the mux is installed before the handshake, from
the cached ALPN, for every SSL server with an ALPN, while this is only
needed to send early data. If the handshake then negotiates another
protocol, the wrong mux stays in place and the request ends in a 502.

Let's only do it for servers with "allow-0rtt". This should help with
github issue #3473, and must be backported to 3.3.
src/backend.c