BUG/MEDIUM: stconn: Propagate error on the SC on sending path
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 18 Apr 2023 16:38:32 +0000 (18:38 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 18 Apr 2023 16:57:04 +0000 (18:57 +0200)
commitd0c57d3d337c44003c5c1ae49ca6ee472695b5fb
tree461d0b5c92607769f0d2488c1b9eebceb76604d3
parent845f7c4708d793b7ee1af7fac1c2c45a2e4e70c1
BUG/MEDIUM: stconn: Propagate error on the SC on sending path

On sending path, a pending error can be promoted to a terminal error at the
endpoint level (SE_FL_ERR_PENDING to SE_FL_ERROR). When this happens, we
must propagate the error on the SC to be able to handle it at the stream
level and eventually forward it to the other side.

Because of this bug, it is possible to freeze sessions, for instance on the
CLI.

It is a 2.8-specific issue. No backport needed.
src/stconn.c