]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: mux-h1: Process input even if the input buffer is empty
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 16 Apr 2019 18:23:55 +0000 (20:23 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 17 Apr 2019 12:52:31 +0000 (14:52 +0200)
It is required, at least, to add the EOM block and finish the message when the
TCP splicing was used to send all data. Otherwise, there is no way to finish the
parsing.

This patch must be backported to 1.9.

src/mux_h1.c

index 368dcc6c9930959d98c6da5fbfb9e717715c1ae1..7b172252456e439043d95678149d3cadc5fd831f 100644 (file)
@@ -1319,8 +1319,6 @@ static size_t h1_process_input(struct h1c *h1c, struct buffer *buf, int flags)
 
        data = htx->data;
        count = b_data(&h1c->ibuf);
-       if (!count)
-               goto end;
        rsv = ((flags & CO_RFL_KEEP_RSV) ? global.tune.maxrewrite : 0);
 
        if (htx_is_empty(htx))