mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
BUG/MINOR: mux-quic: remove extra BUG_ON() in _qcc_send_stream()
The following patch fixed a BUG_ON() which could be triggered if RS/SS
emission was scheduled after stream local closure.
7ee1279f4b
BUG/MEDIUM: mux-quic: fix crash on RS/SS emission if already close local
qcc_send_stream() was rewritten as a wrapper around an internal
_qcc_send_stream() used to bypass the faulty BUG_ON(). However, an extra
unnecessary BUG_ON() was added by mistake in _qcc_send_stream().
This should not cause any issue, as the BUG_ON() is only active if <urg>
argument is false, which is not the case for RS/SS emission. However,
this patch is labelled as a bug as this BUG_ON() is unnecessary and may
cause issues in the future.
This should be backported up to 2.8, after the above mentionned patch.
This commit is contained in:
parent
7ee1279f4b
commit
c5f8df8d55
1 changed files with 1 additions and 3 deletions
|
|
@ -1536,9 +1536,6 @@ static void _qcc_send_stream(struct qcs *qcs, int urg)
|
|||
LIST_INSERT(&qcc->send_list, &qcs->el_send);
|
||||
}
|
||||
else {
|
||||
/* Cannot send STREAM if already closed. */
|
||||
BUG_ON(qcs_is_close_local(qcs));
|
||||
|
||||
if (!LIST_INLIST(&qcs->el_send))
|
||||
LIST_APPEND(&qcs->qcc->send_list, &qcs->el_send);
|
||||
}
|
||||
|
|
@ -1598,6 +1595,7 @@ void qcc_send_stream(struct qcs *qcs, int urg, int count)
|
|||
|
||||
/* Cannot send STREAM if already closed. */
|
||||
BUG_ON(qcs_is_close_local(qcs));
|
||||
|
||||
_qcc_send_stream(qcs, urg);
|
||||
|
||||
if (count) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue