]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: streams: Always create a conn_stream in connect_server().
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 22 Jan 2020 16:34:54 +0000 (17:34 +0100)
committerOlivier Houchard <cognet@ci0.org>
Wed, 22 Jan 2020 17:55:59 +0000 (18:55 +0100)
commit8af03b396a6025437b675f9ecaa5db321ec4918c
treee77e5d1e12897c5a16c41ef363ebfe63fbbbe3fc
parent56dd354b3c55876c4e693fe5eee919e85b2bad53
MEDIUM: streams: Always create a conn_stream in connect_server().

In connect_server(), when creating a new connection for which we don't yet
know the mux (because it'll be decided by the ALPN), instead of associating
the connection to the stream_interface, always create a conn_stream. This way,
we have less special-casing needed. Store the conn_stream in conn->ctx,
so that we can reach the upper layers if needed.
include/proto/stream_interface.h
src/backend.c
src/stream_interface.c