]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux-h1: Don't adjust anymore the amount of data sent in h1_snd_buf()
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 5 Dec 2018 14:53:38 +0000 (15:53 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 5 Dec 2018 16:32:10 +0000 (17:32 +0100)
Because the infinite forward is now HTX aware, it is now useless to tinker with
the number of bytes really sent.

src/mux_h1.c

index 0b085c2c69fe6d41c82d0d4e1dee7d695fcb6ea3..a09cac8243e7dbd352b2561d3f60438ca00291cd 100644 (file)
@@ -1980,13 +1980,6 @@ static size_t h1_snd_buf(struct conn_stream *cs, struct buffer *buf, size_t coun
                        break;
        }
 
-       /* We need to do that because of the infinite forwarding. <buf>
-        * contains HTX messages so when infinite forwarding is enabled,
-        * count is equal to the buffer size. From outside, the buffer
-        * appears as full.
-        */
-       if (!b_data(buf))
-               total = count;
        return total;
 }