From aea0d38fdd1d03aa5d3d52495074c51934fa114a Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Thu, 5 Mar 2026 17:06:12 +0100 Subject: [PATCH] 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. --- src/mux_h2.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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);