]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: H2: Activate polling after successful h2_snd_buf().
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 21 Aug 2018 14:36:10 +0000 (16:36 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 21 Aug 2018 16:06:57 +0000 (18:06 +0200)
Make sure h2_send() is called after h2_snd_buf() by activating polling.

This is 1.9-specific, no backport is needed.

src/mux_h2.c

index 4a3150a2e75ff3d4cd7ff8bf739b9400042bb74a..7824cfe40dda4b44e721e16d9d1df5e8ea4c511a 100644 (file)
@@ -3531,6 +3531,8 @@ static size_t h2_snd_buf(struct conn_stream *cs, struct buffer *buf, size_t coun
        }
 
        b_del(buf, total);
+       if (total > 0)
+               conn_xprt_want_send(h2s->h2c->conn);
        return total;
 }