]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stream: make stream_new() always set the target and analysers
authorWilly Tarreau <w@1wt.eu>
Sun, 4 Dec 2016 23:26:31 +0000 (00:26 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 27 Jun 2017 12:38:02 +0000 (14:38 +0200)
commit9b82d941c58183efe43a49da73927e537aacef90
tree5e3458b3f849f6db46121b096cd2814314a9ec60
parentf3a55dbd2235684f4e9711511e0c87353c0a3773
MEDIUM: stream: make stream_new() always set the target and analysers

It doesn't make sense that stream_new() doesn't sets the target nor
analysers and that the caller has to do it even if it doesn't know
about streams (eg: in session_accept_fd()). This causes trouble for
H2 where the applet handling the protocol cannot properly change
these information during its init phase.

Let's ensure it's always set and that the callers don't set it anymore.

Note: peers and lua don't use analysers and that's properly handled.
src/session.c
src/stream.c