]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mux-h1: Use the count value received from the SI in h1_rcv_buf()
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 17 May 2019 13:35:33 +0000 (15:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 28 May 2019 05:42:12 +0000 (07:42 +0200)
commit30db3d737be7a285acbe858d9767538c9e1f6682
treef7388874ae8b1abce1dc385bb50568bb11026569
parent156852b613596bdbf8fb67edc6e736d496c89a92
MEDIUM: mux-h1: Use the count value received from the SI in h1_rcv_buf()

Now, the SI calls h1_rcv_buf() with the right count value. So we can rely on
it. During the parsing, we now really respect this value to be sure to never
exceed it. To do so, once headers are parsed, we should estimate the size of the
HTX message before copying data.
src/mux_h1.c