]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: htx: Store the head position instead of the wrap one
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 30 Apr 2019 15:55:45 +0000 (17:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 28 May 2019 05:42:12 +0000 (07:42 +0200)
commit28f29c7eea2a91697a43d635ce7ca62794080b6b
tree48aabd283b3f8f37ba960ab65e2fa58f5b5595fd
parentc8b246f10818a0c59d3c8b4dae234a44f680045e
MINOR: htx: Store the head position instead of the wrap one

The head of an HTX message is heavily used whereas the wrap position is only
used when a block is added or removed. So it is more logical to store the head
position in the HTX message instead of the wrap one. The wrap position can be
easily deduced. To get it, the new function htx_get_wrap() may be used.
include/common/htx.h
src/http_htx.c
src/htx.c
src/stream.c