BUG/MINOR: stconn: Don't inhibit shutdown on connection on error
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 Sep 2023 10:02:25 +0000 (12:02 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 6 Sep 2023 07:29:27 +0000 (09:29 +0200)
commit015fec6a29123fdbfe7b7185db6c0c659ef69399
tree29f8392d2083e6a7525976e84347014011f20b99
parentfb4294be55d372a20aee0c0f430c508a20bfb020
BUG/MINOR: stconn: Don't inhibit shutdown on connection on error

In the SC function responsible to perform shutdown, there is a statement
inhibiting the shutdown if an error was encountered on the SC. This
statement is inherited from very old version and should in fact be
removed. The error may be set from the stream. In this case the shutdown
must be performed. In all cases, it is not a big deal if the shutdown is
performed twice because underlying functions already handle multiple calls.

This patch does not fix any bug. Thus there is no reason to backport it.
src/stconn.c