]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stream: don't rely on the session's listener anymore in stream_new()
authorWilly Tarreau <w@1wt.eu>
Sun, 5 Apr 2015 22:25:48 +0000 (00:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 6 Apr 2015 09:37:35 +0000 (11:37 +0200)
commitd1769b8b9a4d897a17f14ddac4faf400e0713433
tree9c7eb0fa34187051f95364864a168043bfd3a415
parentfb9f5849563bb0ac7a3257023dc1e842314e0c82
MEDIUM: stream: don't rely on the session's listener anymore in stream_new()

When the stream is instanciated from an applet, it doesn't necessarily
have a listener. The listener was sparsely used there, just to retrieve
the task function, update the listeners' stats, and set the analysers
and default target, both of which are often zero from applets. Thus
these elements are now initialized with default values that the caller
is free to change if desired.
src/peers.c
src/session.c
src/stream.c