BUG/MINOR: mux-quic: always notify stream upper layer on reset
Function qcc_reset_stream() is used when the stream is reset
prematurely. Along the RESET_STREAM emission, it also notifies the
stream upper layer, so that the error is transferred to the other MUX
side.
Previously, the function was skipped if the stream was already locally
closed, as RESET_STREAM is unnecessary in this case. However, this
causes an issue on the backend side as the call is skipped if the
request is already transferred. The error is thus not reported on the
other side and the client will be left waiting until the server timeout
is hit.
On the frontend side, impact is much more limited. If the stream is
locally closed, the server has already transmitted its response and is
no longer waiting. The only user-visible change is on haproxy stream
termination log, with a possible client abort (C---) now reported.
Fix this by adjusting qcc_reset_stream() so that, when the stream is
locally closed, upper-layer notification is still executed even though
the RESET_STREAM emission is skipped.
To ensure notification is only performed once, an additionnal check is
performed to skip it if SE_FL_ERROR or SE_FL_ERR_PENDING is already set.
As a side-effect, this prevents the termination event code from being
overwritten.
This must be backported up to 3.3 after a period of observation, as this
is mainly an issue on the backend side.