From: Christopher Faulet Date: Thu, 5 Mar 2026 16:06:12 +0000 (+0100) Subject: MINOR: mux-h2: Rely on h2s_notify_send() when resuming h2s for sending X-Git-Tag: v3.4-dev7~107 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aea0d38fdd1d03aa5d3d52495074c51934fa114a;p=thirdparty%2Fhaproxy.git MINOR: mux-h2: Rely on h2s_notify_send() when resuming h2s for sending In h2_resume_each_sending_h2s(), there was exactly the same code than h2s_notify_send(). So let's use h2s_notify_send() instead of duplicating code. --- diff --git a/src/mux_h2.c b/src/mux_h2.c index 80abac3d8..551aff33f 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -4689,16 +4689,7 @@ static void h2_resume_each_sending_h2s(struct h2c *h2c, struct list *head) continue; } - if (h2s->subs && h2s->subs->events & SUB_RETRY_SEND) { - h2s->flags |= H2_SF_NOTIFIED; - tasklet_wakeup(h2s->subs->tasklet); - h2s->subs->events &= ~SUB_RETRY_SEND; - if (!h2s->subs->events) - h2s->subs = NULL; - } - else if (h2s->flags & (H2_SF_WANT_SHUTR|H2_SF_WANT_SHUTW)) { - tasklet_wakeup(h2s->shut_tl); - } + h2s_notify_send(h2s); } TRACE_LEAVE(H2_EV_H2C_SEND|H2_EV_H2S_WAKE, h2c->conn);