]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: server: Don't use the cached ALPN for websocket
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 16 Oct 2026 15:05:11 +0000 (17:05 +0200)
committerOlivier Houchard <cognet@ci0.org>
Thu, 22 Oct 2026 15:37:27 +0000 (17:37 +0200)
commit73ce20faa03e8c2670abc78bf7da73bb8bbe2bf5
tree2b6e4b8bcfd6d66442c8625509f4e856c66bac7d
parent2bcf804b49dd941fb0078d09f7fff01cb4d530ad
BUG/MEDIUM: server: Don't use the cached ALPN for websocket

When using websockets, we may end up using a different ALPN than the one
we usually use with the server, so do not reuse the cached ALPN, if any,
and do not cache the one we used for that connection. Otherwise, we may
end up with websocket connections that will attempt to use the wrong
mux, and end in error.
Not making any attempt at caching the ALPN means we can't easily use
0RTT with websockets, but I do not believe this is a big problem.

This will hopefully help with github issue #3473.

This should be backported up to 3.3.
src/backend.c