]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux-h1: Don't wakeup the H1C when output buffer become available
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 30 Sep 2020 15:30:15 +0000 (17:30 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 7 Oct 2020 12:07:29 +0000 (14:07 +0200)
There is no reason to wake up the H1 connection when a new output buffer is
retrieved after an allocation failure because only the H1 stream will fill it.

src/mux_h1.c

index d4c109f9bc9c2acfe271e7d352c1ce04e8cf7b39..a7fed2a6f876ce2c5d5a29be478e714869626e7c 100644 (file)
@@ -401,7 +401,6 @@ static int h1_buf_available(void *target)
        if ((h1c->flags & H1C_F_OUT_ALLOC) && b_alloc_margin(&h1c->obuf, 0)) {
                TRACE_STATE("unblocking h1s, obuf allocated", H1_EV_TX_DATA|H1_EV_H1S_BLK|H1_EV_STRM_WAKE, h1c->conn, h1c->h1s);
                h1c->flags &= ~H1C_F_OUT_ALLOC;
-               tasklet_wakeup(h1c->wait_event.tasklet);
                if (h1c->h1s)
                        h1_wake_stream_for_send(h1c->h1s);
                return 1;