]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: htx: Save hdrs_bytes when the HTX start-line is replaced
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 25 Jun 2019 19:31:26 +0000 (21:31 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 26 Jun 2019 07:57:49 +0000 (09:57 +0200)
commit2bce046eea46f7ca83d0ee6213780135f0a0a625
treed133bd88f0d2e8e5843ad49b4b210a10830d8e08
parent19338011368b787b18598aac00bd639657f22bfa
BUG/MINOR: htx: Save hdrs_bytes when the HTX start-line is replaced

The HTX start-line contains the number of bytes held by all headers as seen by
the mux during the parsing. So it must not be updated during analysis. It was
done when the start-line is replaced, so this update was removed at this
place. But we still save it from the old start-line to not loose it. It should
not be used outside the mux, but there is no reason to skip it. It is a bug,
however it should have no impact.

This patch must be backported to 2.0.
src/htx.c