]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: htx: Deduce the number of used blocks from tail and head values
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 11 Jun 2019 14:32:24 +0000 (16:32 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Jul 2019 07:18:27 +0000 (09:18 +0200)
commit192c6a23d48a0b4393885207221aebca82ff7609
tree9390f4253a425110d7f070cdb287cda0d8532bff
parent5a916f73266953031252bbeb33cbe01995d3e1fd
MINOR: htx: Deduce the number of used blocks from tail and head values

<head> and <tail> fields are now signed 32-bits integers. For an empty HTX
message, these fields are set to -1. So the field <used> is now useless and can
safely be removed. To know if an HTX message is empty or not, we just compare
<head> against -1 (it also works with <tail>). The function htx_nbblks() has
been added to get the number of used blocks.
include/common/htx.h
src/http_htx.c
src/htx.c
src/mux_h1.c
src/mux_h2.c
src/stream.c