BUG/MEDIUM: stream: Don't call mux .ctl() callback if not implemented
The commit 5ff7d2276 ("BUG/MEDIUM: stream: Properly handle abortonclose when set
on backend only") introduced a regression. Not all multiplexer implement the
.ctl() callback function. Thus we must be sure this callback function is defined
first to call it.
This patch should fix a crash reported by Tristan in the issue #2095. It must be
backported as far as 2.2, with the commit above.
(cherry picked from commit 691f4cf449c700c7abedb845557d39cd788264b0)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 8af12381581fb327dcadf716fb626de6ed618415)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 7381ff48c3afcfb6349b664b74c7c06614ed0d9d)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 3b5ba890c848a17b80193215dc1ebd483da514c7)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed