]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: mux-h1: Remove the rxbuf and decode HTTP messages in channel's buffer
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 19 Nov 2018 09:40:09 +0000 (10:40 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 20 Nov 2018 13:31:44 +0000 (14:31 +0100)
commit539e029cc593eac96c559be330efc00496ddfdbe
tree78a763e97d56b296ccf7fc4e10e1fa5f49f2bb51
parent4bf194cbdbcda8ec4ce83d7f12d2fe9b08483c94
MAJOR: mux-h1: Remove the rxbuf and decode HTTP messages in channel's buffer

It avoids a copy between the rxbuf and the channel's buffer. It means the
parsing is done in h1_rcv_buf(). So we need to have a stream to start the
parsing. This change should improve the overall performances. It also implies a
better split between the connection layer and the applicative layer. Now, on the
connection layer, only raw data are manipulated. Raw data received from the
socket are stored in ibuf and those sent are get from obuf. On the applicative
layer, data in ibuf are parsed and copied into the channel's buffer. And on the
other side, those structured data are formatted and copied into obuf.
src/mux_h1.c