CLEANUP: stconn: always use se_fl_set_error() to set the pending error
authorWilly Tarreau <w@1wt.eu>
Tue, 17 Jan 2023 15:25:29 +0000 (16:25 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 17 Jan 2023 15:25:29 +0000 (16:25 +0100)
commit35c4dd0005a210597c2b96317c6f69e3fed4b171
tree410820c8d4fb1698676a1a9146a551b62df5e076
parent40725a4eb0beadcdaa3c60b6f8c8fe20ab53abc3
CLEANUP: stconn: always use se_fl_set_error() to set the pending error

In mux-h2 and mux-quic we still had two places manually setting
SE_FL_ERR_PENDING or SE_FL_ERROR depending on the EOS state, instead
of using se_fl_set_error() which takes care of the condition. Better
use the specialized function for this, it will allow to centralize
the conditions. Note that this will be needed to fix a bug.
src/mux_h2.c
src/mux_quic.c