]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] http: keep pointer to beginning of data
authorWilly Tarreau <w@1wt.eu>
Sun, 29 Nov 2009 17:12:29 +0000 (18:12 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 29 Nov 2009 17:12:29 +0000 (18:12 +0100)
commitfa355d4a51072ef2f0bc37147d7048e6b758cab0
treeb58a01cd7fe37002eae9f6985d74ada5dbc96b11
parent53319c91ef25e23b823d59bb2b5e32ccc582e1b3
[MINOR] http: keep pointer to beginning of data

We now set msg->col and msg->sov to the first byte of non-header.
They will be used later when parsing chunks. A new macro was added
to perform size additions on an http_msg in order to limit the risks
of copy-paste in the long term.

During this operation, it appeared that the http_msg struct was not
optimal on 64-bit, so it was re-ordered to fill the holes.
include/proto/proto_http.h
include/types/proto_http.h
src/proto_http.c