]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux-h2: Rely on h2s_notify_send() when resuming h2s for sending
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 5 Mar 2026 16:06:12 +0000 (17:06 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 10 Mar 2026 14:10:34 +0000 (15:10 +0100)
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

index 80abac3d855020f2cb80ba8c8ca70fb2bed1a99a..551aff33f31fda549b24ecd7c502810a7cf8c31a 100644 (file)
@@ -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);