]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: htx: Add a flag on a HTX message when no more data are expected
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 22 Jul 2020 14:20:34 +0000 (16:20 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 22 Jul 2020 14:43:32 +0000 (16:43 +0200)
commit810df0614579a32da46ec8f924654342bdb88b77
treecf616afbf30ae35e196ed85f273336c7691de669
parent010ab35a9118daf17a670fb2b42e40447f967f7c
MEDIUM: htx: Add a flag on a HTX message when no more data are expected

The HTX_FL_EOI flag must now be set on a HTX message when no more data are
expected. Most of time, it must be set before adding the EOM block. Thus, if
there is no space for the EOM, there is still an information to know all data
were received and pushed in the HTX message. There is only an exception for the
HTTP replies (deny, return...). For these messages, the flag is set after all
blocks are pushed in the message, including the EOM block, because, on error,
we remove all inserted data.
include/haproxy/htx-t.h
include/haproxy/htx.h
src/cache.c
src/h1_htx.c
src/hlua.c
src/http_ana.c
src/mux_h2.c
src/stats.c
src/tcpcheck.c