]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: servers: Store the connection hash with the parameter cache
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 19 May 2026 11:23:21 +0000 (13:23 +0200)
committerOlivier Houchard <cognet@ci0.org>
Wed, 20 May 2026 08:29:22 +0000 (10:29 +0200)
commitde3f245df032073dec134f5d0f597d73a7b2575d
tree67a9dffe8d956251622e2ac636a5992141343ad2
parente139dd90e328bcc6b085570f8ba58683e38a7f90
BUG/MEDIUM: servers: Store the connection hash with the parameter cache

When we store the negociated server parameters, such as the ALPN, also
store the calculated hash with the connection. If it is different, as
can happen because the IP address is different because set-dst was used,
we certainly do not want to reuse the information in the cache,
otherwise we could end up using the wrong ALPN and mux.
That means we already have to calculate the hash in connect_server()
now, while before we would not do it for Websockets, if we could not do
connection reuse, as that's all the hash was used for.

This should fix Github issue #3386

This should be backported as far as 3.2.
include/haproxy/server-t.h
src/backend.c
src/connection.c
src/server.c
src/ssl_sock.c