MINOR: stream-int: Be sure to have a mux to do sends and receives
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 30 Jul 2020 07:26:46 +0000 (09:26 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 30 Jul 2020 08:06:35 +0000 (10:06 +0200)
commit027b952389369ee90b5052ebeba65141f233dafd
treeb5cc50ff8254d4f3e6dff45f83065b75c14f4640
parentc865cba45632fc8e48c3b2fa9ecc7982b02cf5f8
MINOR: stream-int: Be sure to have a mux to do sends and receives

In si_cs_send() and si_cs_recv(), we explicitly test the connection's mux is
defined to proceed. For si_cs_recv(), it is probably a bit overkill. But
opportunistic sends are possible from the moment the server connection is
created. So it is safer to do this test.

This patch may be backported as far as 1.9 if necessary.

(cherry picked from commit e96993b1f203a14d2ef1eaa70be595c7d5b98643)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 17c13f0fdc42e53e1034a7e4ef0147184afd4221)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/stream_interface.c