]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mux: Use the mux protocol specified on bind/server lines
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 10 Apr 2018 13:01:45 +0000 (15:01 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 8 Aug 2018 08:42:08 +0000 (10:42 +0200)
commit7ce0c891ab2ed896421251ab6c9388d751d60bda
tree6cdeafdccc8876150ea0f7daca66ee57858c499e
parent8ed0a3e32a90af08a23ca8ab79d52d5d30666780
MEDIUM: mux: Use the mux protocol specified on bind/server lines

To do so, mux choices are split to handle incoming and outgoing connections in a
different way. The protocol specified on the bind/server line is used in
priority. Then, for frontend connections, the ALPN is retrieved and used to
choose the best mux. For backend connection, there is no ALPN. Finaly, if no
protocol is specified and no protocol matches the ALPN, we fall back on a
default mux, choosing in priority the first mux with exactly the same mode.
include/proto/connection.h
src/backend.c
src/session.c