BUG/MEDIUM: stconn: Do nothing in sc_conn_recv() when the SC needs more room
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 12 Apr 2023 16:35:18 +0000 (18:35 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 14 Apr 2023 10:13:09 +0000 (12:13 +0200)
commit95125886ee2599c9d65c49651a665734bbc5a0fd
treeaaf8d104feb763c29f23aa6c922b156ddf004c4b
parent915ba08b57b5dfc8d7c17edb6ff1714bc9411248
BUG/MEDIUM: stconn: Do nothing in sc_conn_recv() when the SC needs more room

We erroneously though that an attempt to receive data was not possible if the SC
was waiting for more room in the channel buffer. A BUG_ON() was added to detect
bugs. And in fact, it is possible.

The regression was added in commit 341a5783b ("BUG/MEDIUM: stconn: stop to
enable/disable reads from streams via si_update_rx").

This patch should fix the issue #2115. It must be backported if the commit
above is backported.
src/stconn.c