BUG/MINOR: stream-int: Fix si_cs_recv() return value
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 20 Nov 2019 15:42:00 +0000 (16:42 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 20 Nov 2019 15:48:01 +0000 (16:48 +0100)
commite6d8cb1e911267662c92f257f0f42df1ec78d42b
treedb0639c19b0f23e5573b7929787caaf5bb1dbfa3
parent6db8a2e02132d7370284869d5964512534183d45
BUG/MINOR: stream-int: Fix si_cs_recv() return value

The previous patch on this function (36b536d6c "BUG/MEDIUM: stream-int: Don't
loose events on the CS when an EOS is reported") contains a bug. The return
value is based on the conn-stream's flags. But it may be reset if the CS is
closed. Ironically it was exactly the purpose of this patch...

This patch must be backported to 2.0 and 1.9.
src/stream_interface.c