]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-h1: Don't rely on the stream anymore in h1_set_srv_conn_mode()
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 22 Nov 2018 09:19:50 +0000 (10:19 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 1 Dec 2018 16:37:27 +0000 (17:37 +0100)
commita1692f51a508f86d82474cf8353f598a6cc8ee2b
treead18abbb9b174535b3056ed951da60cb81c4a44c
parent870aad91166e8f6f2f8853c1caef4cd2cb664204
MINOR: mux-h1: Don't rely on the stream anymore in h1_set_srv_conn_mode()

In h1_set_srv_conn_mode(), we need to get the frontend proxy of a server
connection. untill now, we relied on the stream to get it. But it was a bit
dirty. The stream always exists at this stage but to get it, we also need to get
the stream-interface. Since the commit 7c6f8b146 ("MAJOR: connections: Detach
connections from streams."), the connection's owner is always the session, even
for outgoing connections. So now, we rely on the session to get the frontend
proxy in h1_set_srv_conn_mode().

Use the session instead of the stream to get
the frontend on the server connection
src/mux_h1.c